-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Tests currently fail on a null vs empty string.
$ react-scripts test --env=jsdom --coverage --setupTestFrameworkScriptFile=./config/jest/setup.js
FAIL src/components/__tests__/CookieCompliancePopup.test.js
● CookieCompliancePopup component › should not render when consent has been agreed
expect(received).toBe(expected)
Expected value to be (using ===):
null
Received:
""
Difference:
Comparing two different types of values. Expected null but received string.
at Object.it (src/components/__tests__/CookieCompliancePopup.test.js:103:30)
at new Promise (<anonymous>)
at Promise.resolve.then.el (node_modules/p-map/index.js:46:16)
at process._tickCallback (internal/process/next_tick.js:68:7)
● CookieCompliancePopup component › should not render when consent has been disagreed
expect(received).toBe(expected)
Expected value to be (using ===):
null
Received:
""
Difference:
Comparing two different types of values. Expected null but received string.
at Object.it (src/components/__tests__/CookieCompliancePopup.test.js:109:30)
at new Promise (<anonymous>)
at Promise.resolve.then.el (node_modules/p-map/index.js:46:16)
at process._tickCallback (internal/process/next_tick.js:68:7)
PASS src/actions/__tests__/cookieCompliance.test.js
PASS src/reducers/__tests__/cookieCompliance.test.js
Test Suites: 1 failed, 2 passed, 3 total
Tests: 2 failed, 11 passed, 13 total
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working