File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
const assert = require ( 'assert' ) ;
2
+ const path = require ( 'path' ) ;
2
3
3
4
const utils = require ( '../../lib/utils' ) ;
4
5
@@ -8,25 +9,25 @@ describe('doxdox utils', () => {
8
9
9
10
it ( 'find package without input' , ( ) => {
10
11
11
- assert . equal ( utils . findPackageFileInPath ( ) , ` ${ process . cwd ( ) } / package.json` ) ;
12
+ assert . equal ( utils . findPackageFileInPath ( ) , path . join ( process . cwd ( ) , ' package.json' ) ) ;
12
13
13
14
} ) ;
14
15
15
16
it ( 'find package with input directory' , ( ) => {
16
17
17
- assert . equal ( utils . findPackageFileInPath ( './' ) , ` ${ process . cwd ( ) } / package.json` ) ;
18
+ assert . equal ( utils . findPackageFileInPath ( './' ) , path . join ( process . cwd ( ) , ' package.json' ) ) ;
18
19
19
20
} ) ;
20
21
21
22
it ( 'find package with input file' , ( ) => {
22
23
23
- assert . equal ( utils . findPackageFileInPath ( './package.json' ) , ` ${ process . cwd ( ) } / package.json` ) ;
24
+ assert . equal ( utils . findPackageFileInPath ( './package.json' ) , path . join ( process . cwd ( ) , ' package.json' ) ) ;
24
25
25
26
} ) ;
26
27
27
28
it ( 'find package with input non package.json file' , ( ) => {
28
29
29
- assert . equal ( utils . findPackageFileInPath ( './index.js' ) , ` ${ process . cwd ( ) } / package.json` ) ;
30
+ assert . equal ( utils . findPackageFileInPath ( './index.js' ) , path . join ( process . cwd ( ) , ' package.json' ) ) ;
30
31
31
32
} ) ;
32
33
You can’t perform that action at this time.
0 commit comments