Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 0d383338
authored
Apr 01, 2015
by
Ruben Bridgewater
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove done() from sync tests
1 parent
9e081439
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
test/integration/dialects/postgres/hstore.test.js
test/integration/dialects/postgres/range.test.js
test/integration/dialects/postgres/hstore.test.js
View file @
0d38333
...
...
@@ -23,9 +23,8 @@ if (dialect.match(/^postgres/)) {
expect
(
hstore
.
stringify
({
foo
:
null
})).
to
.
equal
(
'"foo"=>NULL'
);
});
it
(
'should handle empty string correctly'
,
function
(
done
)
{
it
(
'should handle empty string correctly'
,
function
()
{
expect
(
hstore
.
stringify
({
foo
:
''
})).
to
.
equal
(
'"foo"=>\"\"'
);
done
();
});
it
(
'should handle a string with backslashes correctly'
,
function
()
{
...
...
test/integration/dialects/postgres/range.test.js
View file @
0d38333
...
...
@@ -26,11 +26,10 @@ if (dialect.match(/^postgres/)) {
expect
(
range
.
stringify
([
1
,
2
,
3
])).
to
.
equal
(
''
);
});
it
(
'should return empty string when non-array parameter is passed'
,
function
(
done
)
{
it
(
'should return empty string when non-array parameter is passed'
,
function
()
{
expect
(
range
.
stringify
({})).
to
.
equal
(
''
);
expect
(
range
.
stringify
(
'test'
)).
to
.
equal
(
''
);
expect
(
range
.
stringify
(
undefined
)).
to
.
equal
(
''
);
done
();
});
it
(
'should handle array of objects with `inclusive` and `value` properties'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment