Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
variety
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
variety
Commits
ec8a9b77
Commit
ec8a9b77
authored
Apr 06, 2016
by
Tomas Dvorak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #116 from todvora/master
ParameterParsingTest fix
parents
974c7bf8
d2e1c5d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ParametersParsingTest.js
spec/ParametersParsingTest.js
+3
-2
No files found.
spec/ParametersParsingTest.js
View file @
ec8a9b77
...
@@ -52,13 +52,14 @@ describe('Parameters parsing', () => {
...
@@ -52,13 +52,14 @@ describe('Parameters parsing', () => {
assert
.
deepEqual
(
params
.
query
,
{
name
:
'Harry'
});
assert
.
deepEqual
(
params
.
query
,
{
name
:
'Harry'
});
});
});
it
(
'should recognize unknown collection'
,
async
()
=>
{
it
(
'should recognize unknown collection'
,
async
(
done
)
=>
{
try
{
try
{
await
test
.
runAnalysis
({
collection
:
'--unknown--'
});
await
test
.
runAnalysis
({
collection
:
'--unknown--'
});
throw
new
Error
(
'Should fail and be handled in catch branch'
);
done
(
new
Error
(
'Should throw an exception!'
)
);
}
catch
(
err
)
{
}
catch
(
err
)
{
assert
.
ok
(
err
.
code
>
0
);
assert
.
ok
(
err
.
code
>
0
);
assert
.
ok
(
err
.
stdout
.
indexOf
(
'The collection specified (--unknown--) in the database specified (test) does not exist or is empty.'
)
>
-
1
);
assert
.
ok
(
err
.
stdout
.
indexOf
(
'The collection specified (--unknown--) in the database specified (test) does not exist or is empty.'
)
>
-
1
);
done
();
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment