Skip to content

Instantly share code, notes, and snippets.

@pahund
Created May 25, 2017 11:17
Show Gist options
  • Save pahund/c6cb6584dc69995175935bf89fbf5bfb to your computer and use it in GitHub Desktop.
Save pahund/c6cb6584dc69995175935bf89fbf5bfb to your computer and use it in GitHub Desktop.
Chai assertion after running through the Jest code mod
describe('When I call bool', () =>
describe('with “TRUE”', () => {
let result;
beforeEach(() => result = bool('TRUE'));
describe('the result', () => it('is boolean value true', () =>
expect(result).be.a('boolean').toBe(true)
));
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment