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 433ccd42
authored
Feb 10, 2015
by
Alexis Määttä Vinkler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated broken test.
1 parent
b990379f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
test/integration/instance.test.js
test/integration/instance.test.js
View file @
433ccd4
...
@@ -8,7 +8,6 @@ var chai = require('chai')
...
@@ -8,7 +8,6 @@ var chai = require('chai')
,
dialect
=
Support
.
getTestDialect
()
,
dialect
=
Support
.
getTestDialect
()
,
config
=
require
(
__dirname
+
'/../config/config'
)
,
config
=
require
(
__dirname
+
'/../config/config'
)
,
sinon
=
require
(
'sinon'
)
,
sinon
=
require
(
'sinon'
)
,
sinonChai
=
require
(
'sinon-chai'
)
,
datetime
=
require
(
'chai-datetime'
)
,
datetime
=
require
(
'chai-datetime'
)
,
uuid
=
require
(
'node-uuid'
)
,
uuid
=
require
(
'node-uuid'
)
,
_
=
require
(
'lodash'
)
,
_
=
require
(
'lodash'
)
...
@@ -16,7 +15,6 @@ var chai = require('chai')
...
@@ -16,7 +15,6 @@ var chai = require('chai')
chai
.
should
();
chai
.
should
();
chai
.
use
(
datetime
);
chai
.
use
(
datetime
);
chai
.
use
(
sinonChai
);
chai
.
config
.
includeStack
=
true
;
chai
.
config
.
includeStack
=
true
;
describe
(
Support
.
getTestDialectTeaser
(
'Instance'
),
function
()
{
describe
(
Support
.
getTestDialectTeaser
(
'Instance'
),
function
()
{
...
@@ -824,12 +822,7 @@ describe(Support.getTestDialectTeaser('Instance'), function() {
...
@@ -824,12 +822,7 @@ describe(Support.getTestDialectTeaser('Instance'), function() {
});
});
it
(
'should throw error when given value of incorrect type'
,
function
()
{
it
(
'should throw error when given value of incorrect type'
,
function
()
{
function
didApplyValue
(
cb
)
{
var
callCount
=
0
;
cb
();
throw
new
Error
(
"Value incorrectly applied!!!"
);
}
var
spy
=
sinon
.
spy
();
return
this
.
User
.
build
({
return
this
.
User
.
build
({
username
:
'a user'
,
username
:
'a user'
,
...
@@ -837,10 +830,10 @@ describe(Support.getTestDialectTeaser('Instance'), function() {
...
@@ -837,10 +830,10 @@ describe(Support.getTestDialectTeaser('Instance'), function() {
})
})
.
save
()
.
save
()
.
then
(
function
()
{
.
then
(
function
()
{
didApplyValue
(
spy
)
;
callCount
+=
1
;
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
spy
.
should
.
have
.
callCount
(
0
);
expect
(
callCount
).
to
.
equal
(
0
);
expect
(
err
).
to
.
exist
;
expect
(
err
).
to
.
exist
;
expect
(
err
.
message
).
to
.
exist
;
expect
(
err
.
message
).
to
.
exist
;
});
});
...
...
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