Skip to content

Commit 482cd17

Browse files
committed
Changed assert method used.
1 parent 7d0ceae commit 482cd17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/specs/utils.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@ describe('doxdox utils', () => {
88

99
it('find package without input', () => {
1010

11-
assert.deepEqual(utils.findPackageFileInPath(), `${process.cwd()}/package.json`);
11+
assert.equal(utils.findPackageFileInPath(), `${process.cwd()}/package.json`);
1212

1313
});
1414

1515
it('find package with input directory', () => {
1616

17-
assert.deepEqual(utils.findPackageFileInPath('./'), `${process.cwd()}/package.json`);
17+
assert.equal(utils.findPackageFileInPath('./'), `${process.cwd()}/package.json`);
1818

1919
});
2020

2121
it('find package with input file', () => {
2222

23-
assert.deepEqual(utils.findPackageFileInPath('./package.json'), `${process.cwd()}/package.json`);
23+
assert.equal(utils.findPackageFileInPath('./package.json'), `${process.cwd()}/package.json`);
2424

2525
});
2626

2727
it('find package with input non package.json file', () => {
2828

29-
assert.deepEqual(utils.findPackageFileInPath('./index.js'), `${process.cwd()}/package.json`);
29+
assert.equal(utils.findPackageFileInPath('./index.js'), `${process.cwd()}/package.json`);
3030

3131
});
3232

3333
it('fail to find package with invalid directory', () => {
3434

35-
assert.deepEqual(utils.findPackageFileInPath('./testing'), null);
35+
assert.equal(utils.findPackageFileInPath('./testing'), null);
3636

3737
});
3838

0 commit comments

Comments
 (0)