Skip to content

Instantly share code, notes, and snippets.

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