Skip to content

Instantly share code, notes, and snippets.

@pahund
Created May 25, 2017 11:20
Show Gist options
  • Save pahund/55531056ea2cfb6a1dd6f13db381e31f to your computer and use it in GitHub Desktop.
Save pahund/55531056ea2cfb6a1dd6f13db381e31f to your computer and use it in GitHub Desktop.
Original chai assertion before 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', () =>
result.should.be.a('boolean').and.equal(true)
));
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment