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
d2e1c5d6
Commit
d2e1c5d6
authored
Apr 05, 2016
by
Tomas Dvorak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ParameterParsingTest fix
parent
974c7bf8
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 @
d2e1c5d6
...
@@ -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