Skip to content

Commit 592bbcc

Browse files
committed
Add .js extensions in require
1 parent e3bb272 commit 592bbcc

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

JavaScript/d-build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const benchmark = require('./c-benchmark');
4-
const chainPrototype = require('./9-build');
5-
const test = require('./a-test');
3+
const benchmark = require('./c-benchmark.js');
4+
const chainPrototype = require('./9-build.js');
5+
const test = require('./a-test.js');
66

77
benchmark.do(40000, 'ProtoBuild', (done) => test(chainPrototype, done));

JavaScript/d-functor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const benchmark = require('./c-benchmark');
4-
const chainFunctor = require('./7-functor');
5-
const test = require('./a-test');
3+
const benchmark = require('./c-benchmark.js');
4+
const chainFunctor = require('./7-functor.js');
5+
const test = require('./a-test.js');
66

77
benchmark.do(40000, 'Functor', (done) => test(chainFunctor, done));

JavaScript/d-promise.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const benchmark = require('./c-benchmark');
4-
const chainPromise = require('./6-promise');
5-
const test = require('./a-test');
3+
const benchmark = require('./c-benchmark.js');
4+
const chainPromise = require('./6-promise.js');
5+
const test = require('./a-test.js');
66

77
benchmark.do(40000, 'Promise', (done) => test(chainPromise, done));

JavaScript/d-prototype.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const benchmark = require('./c-benchmark');
4-
const chainPrototype = require('./8-prototype');
5-
const test = require('./a-test');
3+
const benchmark = require('./c-benchmark.js');
4+
const chainPrototype = require('./8-prototype.js');
5+
const test = require('./a-test.js');
66

77
benchmark.do(40000, 'Prototype', (done) => test(chainPrototype, done));

0 commit comments

Comments
 (0)