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 84887e7c
authored
May 01, 2012
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some minor changes in the spec structure
1 parent
28224cc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
spec/sqlite/dao.spec.js
spec/sqlite/dao.spec.js
View file @
84887e7
...
...
@@ -6,7 +6,7 @@ if(typeof require === 'function') {
buster
.
spec
.
expose
()
describe
(
'
SQL
ite'
,
function
()
{
describe
(
'
DAO@sql
ite'
,
function
()
{
before
(
function
(
done
)
{
var
self
=
this
...
...
@@ -28,26 +28,24 @@ describe('SQLite', function() {
.
error
(
function
(
err
)
{
console
.
log
(
err
)
})
})
describe
(
'DAO'
,
function
()
{
describe
(
'findAll'
,
function
()
{
it
(
"handles dates correctly"
,
function
(
done
)
{
var
self
=
this
describe
(
'findAll'
,
function
()
{
it
(
"handles dates correctly"
,
function
(
done
)
{
var
self
=
this
this
.
User
.
create
({
username
:
'user'
,
createdAt
:
new
Date
(
2011
,
04
,
04
)
})
.
success
(
function
(
oldUser
)
{
self
.
User
.
create
({
username
:
'new user'
})
.
success
(
function
(
newUser
)
{
self
.
User
.
findAll
({
where
:
[
'createdAt > ?'
,
new
Date
(
2012
,
01
,
01
)]
}).
success
(
function
(
users
)
{
expect
(
users
.
length
).
toEqual
(
1
)
done
()
})
this
.
User
.
create
({
username
:
'user'
,
createdAt
:
new
Date
(
2011
,
04
,
04
)
})
.
success
(
function
(
oldUser
)
{
self
.
User
.
create
({
username
:
'new user'
})
.
success
(
function
(
newUser
)
{
self
.
User
.
findAll
({
where
:
[
'createdAt > ?'
,
new
Date
(
2012
,
01
,
01
)]
}).
success
(
function
(
users
)
{
expect
(
users
.
length
).
toEqual
(
1
)
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