Skip to content

Instantly share code, notes, and snippets.

@pahund
Created May 27, 2017 16:21
Show Gist options
  • Save pahund/e40da6640cf8c63f000cf7b4015f4aa2 to your computer and use it in GitHub Desktop.
Save pahund/e40da6640cf8c63f000cf7b4015f4aa2 to your computer and use it in GitHub Desktop.
Using chai assertions with Jest's expect – this doesn't work because of short-hand arrow function
describe('the result', () => it('is boolean value false', () =>
expect(result).to.be.a('boolean').and.equal(false)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment