Comment

Comment by oblak

HN: Is today's hectic javascript making you tense and impatient? Me: Shut up and get to the point! Yeah, it's a futurama quote

On topic: This is quite a list so I just clicked a random link and voila:

> 7.1.1.3 Assertions

> An assertion describes what the result of a computation is expected to look like and throws an exception if those expectations aren’t correct. For example, the following assertion states that the result of the computation 7 plus 1 must be 8:

> ...

> assert.equal(7 + 1, 8);

> There is also assert.deepEqual() that compares objects deeply.

What? Am I going crazy? Have my years of wild hedonism finally caught up with me? I don't see jest mentioned but fired up my browser's console and sure enough, there is no "assert" in my window. What am I missing here?

parent oblak 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton