Skip to content

Commit 24b399e

Browse files
committed
use ES6 import instead of require to pull in 'sum' to sum-test
1 parent 40a29fd commit 24b399e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/sum-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jest.dontMock('../sum'); // or jest.autoMockOff();
22

3-
var sum = require('../sum')['default'];
3+
import sum from '../sum';
44

55
describe('sum', function () {
66
it('adds 1 + 2 to equal 3', function () {

0 commit comments

Comments
 (0)