it('returns "HELLO WORLD"', () => { return behavior1().then((result) => { return Assert.equal(behavior1(), 'HELLO WORLD'); }); });
Unit Testing Express Middleware Behavior in ECMAScript 2015
Morris Singer

Hi Morris Singer, great article. I think I might have found a little error in one of your code examples. Near the end of the article, under ‘‘How do we test this?” shouldn’t the code read “return Assert.equal(result, ‘HELLLO WORLD’)”?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.