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 2a202844
authored
Oct 14, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lets see if we can please travis
1 parent
1149f3ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
7 deletions
test/dao-factory.test.js
test/dao.test.js
test/mysql/connector-manager.test.js
test/support.js
test/dao-factory.test.js
View file @
2a20284
...
@@ -3570,8 +3570,6 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -3570,8 +3570,6 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
describe
(
'references'
,
function
()
{
describe
(
'references'
,
function
()
{
this
.
timeout
(
3000
)
beforeEach
(
function
(
done
)
{
beforeEach
(
function
(
done
)
{
var
self
=
this
var
self
=
this
...
...
test/dao.test.js
View file @
2a20284
...
@@ -13,6 +13,8 @@ chai.use(datetime)
...
@@ -13,6 +13,8 @@ chai.use(datetime)
chai
.
Assertion
.
includeStack
=
true
chai
.
Assertion
.
includeStack
=
true
describe
(
Support
.
getTestDialectTeaser
(
"DAO"
),
function
()
{
describe
(
Support
.
getTestDialectTeaser
(
"DAO"
),
function
()
{
this
.
timeout
(
10000
)
beforeEach
(
function
(
done
)
{
beforeEach
(
function
(
done
)
{
this
.
User
=
this
.
sequelize
.
define
(
'User'
,
{
this
.
User
=
this
.
sequelize
.
define
(
'User'
,
{
username
:
{
type
:
DataTypes
.
STRING
},
username
:
{
type
:
DataTypes
.
STRING
},
...
@@ -449,7 +451,6 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
...
@@ -449,7 +451,6 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
it
(
"should update read only attributes as well (updatedAt)"
,
function
(
done
)
{
it
(
"should update read only attributes as well (updatedAt)"
,
function
(
done
)
{
var
self
=
this
var
self
=
this
this
.
timeout
=
2000
this
.
User
.
create
({
username
:
'John Doe'
}).
complete
(
function
(
err
,
originalUser
)
{
this
.
User
.
create
({
username
:
'John Doe'
}).
complete
(
function
(
err
,
originalUser
)
{
var
originallyUpdatedAt
=
originalUser
.
updatedAt
var
originallyUpdatedAt
=
originalUser
.
updatedAt
...
@@ -565,8 +566,6 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
...
@@ -565,8 +566,6 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
})
})
describe
(
'save'
,
function
()
{
describe
(
'save'
,
function
()
{
this
.
timeout
(
3000
)
// for update timestamp
it
(
'only updates fields in passed array'
,
function
(
done
)
{
it
(
'only updates fields in passed array'
,
function
(
done
)
{
var
self
=
this
var
self
=
this
,
userId
=
null
,
userId
=
null
...
...
test/mysql/connector-manager.test.js
View file @
2a20284
...
@@ -9,8 +9,6 @@ chai.Assertion.includeStack = true
...
@@ -9,8 +9,6 @@ chai.Assertion.includeStack = true
if
(
dialect
.
match
(
/^mysql/
))
{
if
(
dialect
.
match
(
/^mysql/
))
{
describe
(
'[MYSQL Specific] Connector Manager'
,
function
()
{
describe
(
'[MYSQL Specific] Connector Manager'
,
function
()
{
this
.
timeout
(
10000
)
it
(
'works correctly after being idle'
,
function
(
done
)
{
it
(
'works correctly after being idle'
,
function
(
done
)
{
var
User
=
this
.
sequelize
.
define
(
'User'
,
{
username
:
DataTypes
.
STRING
})
var
User
=
this
.
sequelize
.
define
(
'User'
,
{
username
:
DataTypes
.
STRING
})
,
spy
=
sinon
.
spy
()
,
spy
=
sinon
.
spy
()
...
...
test/support.js
View file @
2a20284
...
@@ -128,6 +128,7 @@ before(function(done) {
...
@@ -128,6 +128,7 @@ before(function(done) {
beforeEach
(
function
(
done
)
{
beforeEach
(
function
(
done
)
{
this
.
sequelize
=
sequelize
this
.
sequelize
=
sequelize
Support
.
clearDatabase
(
this
.
sequelize
,
function
()
{
Support
.
clearDatabase
(
this
.
sequelize
,
function
()
{
done
()
done
()
})
})
...
...
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