-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import test from 'ava'; | ||
import util from '../lib/util.js'; | ||
import utils from '../lib/utils.js'; | ||
import _ from 'lodash'; | ||
import path from 'path'; | ||
|
||
test('Getplugins works with directory value as string', t => { | ||
const input = {}; | ||
_.set(input, 'content.plugins.directory', path.join(process.cwd(), 'fixtures')); | ||
t.is(typeof util.getPlugins(input), 'object'); | ||
t.is(typeof utils.getPlugins(input), 'object'); | ||
}); | ||
|
||
test('Getplugins works with directory value as boolean', t => { | ||
const input = {}; | ||
_.set(input, 'content.plugins.directory', true); | ||
t.is(typeof util.getPlugins(input), 'object'); | ||
t.is(typeof utils.getPlugins(input), 'object'); | ||
}); | ||
|
||
test('Getplugins works with directory value as undefined', t => { | ||
const input = {}; | ||
t.is(typeof util.getPlugins(input), 'object'); | ||
t.is(typeof utils.getPlugins(input), 'object'); | ||
}); |