Skip to content

Commit

Permalink
PATLAB-7 add config-check test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-drummer committed Mar 23, 2018
1 parent 71d4c63 commit 7e669a9
Show file tree
Hide file tree
Showing 12 changed files with 437 additions and 360 deletions.
2 changes: 1 addition & 1 deletion lib/patternlibrary/config.js
Expand Up @@ -111,7 +111,7 @@ function checkPatternsAdapterPatterns ( $pl ) {
* @returns
*/
function checkGUI ( $pl ) {
if ($pl.options.nogui !== false) {
if ($pl.options.nogui === false) {
if (!$pl.options.gui) {
throw new Error('GUI options must be defined.');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/util/module-or-process-path.js
Expand Up @@ -12,7 +12,7 @@ function moduleOrProcessPath ( file_or_dir ) {
relFile = path.join(relPath, file_or_dir);

if ( (moduleFile != cwdFile) ) {
if ( !fs.existsSync(cwdFile) && !fs.existsSync(moduleFile)) {
if ( !fs.existsSync(cwdFile) && fs.existsSync(moduleFile)) {

// dindn't find in 'project' dir but found in 'module' dir
// so we actually have a relative path
Expand Down

0 comments on commit 7e669a9

Please sign in to comment.