Skip to content

Commit 60e981f

Browse files
fiskerkeithamus
authored andcommittedDec 30, 2019
fix: add missing directories.test (#111)
1 parent 0606961 commit 60e981f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
 

‎index.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ const sortObjectBy = comparator => onObject(x => sortObjectKeys(x, comparator))
1414
const sortObject = sortObjectBy()
1515
const sortURLObject = sortObjectBy(['type', 'url'])
1616
const sortPeopleObject = sortObjectBy(['name', 'email', 'url'])
17-
const sortDirectories = sortObjectBy(['lib', 'bin', 'man', 'doc', 'example'])
17+
const sortDirectories = sortObjectBy([
18+
'lib',
19+
'bin',
20+
'man',
21+
'doc',
22+
'example',
23+
'test',
24+
])
1825

1926
// See https://docs.npmjs.com/misc/scripts
2027
const defaultNpmScripts = new Set([

‎test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,12 @@ testField('directories', [
373373
[UNKNOWN]: UNKNOWN,
374374
example: 'example',
375375
man: 'man',
376+
test: 'test',
376377
doc: 'doc',
377378
bin: 'bin',
378379
lib: 'lib',
379380
},
380-
expect: ['lib', 'bin', 'man', 'doc', 'example', UNKNOWN],
381+
expect: ['lib', 'bin', 'man', 'doc', 'example', 'test', UNKNOWN],
381382
},
382383
])
383384

0 commit comments

Comments
 (0)
Please sign in to comment.