This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('the result', () => it('is boolean value false', () => | |
expect(result).to.be.a('boolean').and.equal(false) | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chai = require('chai'); | |
const sinonChai = require('sinon-chai'); | |
const chaiAsPromised = require('chai-as-promised'); | |
const chaiEnzyme = require('chai-enzyme'); | |
chai.use(sinonChai); | |
chai.use(chaiAsPromised); | |
chai.use(chaiEnzyme()); | |
global.chaiExpect = chai.expect; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
})); | |
}) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
)); | |
}) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
)); | |
}) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('the best flavor', () => it('is grapefruit', () => | |
bestLaCroixFlavor().should.be('grapefruit') | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('the best flavor is grapefruit', () => | |
expect(bestLaCroixFlavor()).toBe('grapefruit') | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"env": { | |
"jest": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"jest": { | |
"moduleNameMapper": { | |
"\\.scss$": "<rootDir>/test/styleMock.js" | |
} | |
} |