Skip to content

Commit

Permalink
fix: add missing directories.test (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored and keithamus committed Dec 30, 2019
1 parent 0606961 commit 60e981f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ const sortObjectBy = comparator => onObject(x => sortObjectKeys(x, comparator))
const sortObject = sortObjectBy()
const sortURLObject = sortObjectBy(['type', 'url'])
const sortPeopleObject = sortObjectBy(['name', 'email', 'url'])
const sortDirectories = sortObjectBy(['lib', 'bin', 'man', 'doc', 'example'])
const sortDirectories = sortObjectBy([
'lib',
'bin',
'man',
'doc',
'example',
'test',
])

// See https://docs.npmjs.com/misc/scripts
const defaultNpmScripts = new Set([
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,12 @@ testField('directories', [
[UNKNOWN]: UNKNOWN,
example: 'example',
man: 'man',
test: 'test',
doc: 'doc',
bin: 'bin',
lib: 'lib',
},
expect: ['lib', 'bin', 'man', 'doc', 'example', UNKNOWN],
expect: ['lib', 'bin', 'man', 'doc', 'example', 'test', UNKNOWN],
},
])

Expand Down

0 comments on commit 60e981f

Please sign in to comment.