Skip to content

Commit e9918f8

Browse files
committed
Changed require syntax to support older versions of Node.js
1 parent 0035679 commit e9918f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/specs/loaders.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const assert = require('assert');
2-
const {resolve} = require('path');
2+
const path = require('path');
33

44
const loaders = require('../../lib/loaders');
55

@@ -35,7 +35,7 @@ describe('loaders', () => {
3535
describe('loadParser', () => {
3636

3737
const PARSER_PATH = './test/fixtures/parser.js';
38-
const PARSER_PATH_ABSOLUTE = resolve(PARSER_PATH);
38+
const PARSER_PATH_ABSOLUTE = path.resolve(PARSER_PATH);
3939

4040
it('loads dox parser', () =>
4141
loaders.loadParser({'parser': 'dox'})
@@ -76,10 +76,10 @@ describe('loaders', () => {
7676
describe('loadPlugin', () => {
7777

7878
const TEMPLATE_PATH = './test/fixtures/template.hbs';
79-
const TEMPLATE_PATH_ABSOLUTE = resolve(TEMPLATE_PATH);
79+
const TEMPLATE_PATH_ABSOLUTE = path.resolve(TEMPLATE_PATH);
8080

8181
const PLUGIN_PATH = './test/fixtures/plugin.js';
82-
const PLUGIN_PATH_ABSOLUTE = resolve(PLUGIN_PATH);
82+
const PLUGIN_PATH_ABSOLUTE = path.resolve(PLUGIN_PATH);
8383

8484
it('loads markdown plugin', () =>
8585
loaders.loadPlugin({'layout': 'markdown'})

0 commit comments

Comments
 (0)