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 ef04446b
authored
Jun 11, 2013
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove lodash dep. in has-many spec
1 parent
3bada76c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
spec/associations/has-many.spec.js
spec/associations/has-many.spec.js
View file @
ef04446
...
@@ -3,7 +3,6 @@ if (typeof require === 'function') {
...
@@ -3,7 +3,6 @@ if (typeof require === 'function') {
,
Helpers
=
require
(
'../buster-helpers'
)
,
Helpers
=
require
(
'../buster-helpers'
)
,
Sequelize
=
require
(
'../../index'
)
,
Sequelize
=
require
(
'../../index'
)
,
dialect
=
Helpers
.
getTestDialect
()
,
dialect
=
Helpers
.
getTestDialect
()
,
_
=
require
(
'lodash'
)
}
}
buster
.
spec
.
expose
()
buster
.
spec
.
expose
()
...
@@ -33,8 +32,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
...
@@ -33,8 +32,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
})
})
it
(
'does not have any labels assigned to it initially'
,
function
(
done
)
{
it
(
'does not have any labels assigned to it initially'
,
function
(
done
)
{
var
self
=
this
var
chainer
=
new
Sequelize
.
Utils
.
QueryChainer
([
var
chainer
=
new
Sequelize
.
Utils
.
QueryChainer
([
this
.
Article
.
create
({
title
:
'Article'
}),
this
.
Article
.
create
({
title
:
'Article'
}),
this
.
Label
.
create
({
text
:
'Awesomeness'
}),
this
.
Label
.
create
({
text
:
'Awesomeness'
}),
...
@@ -56,8 +53,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
...
@@ -56,8 +53,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
})
})
it
(
'answers true if the label has been assigned'
,
function
(
done
)
{
it
(
'answers true if the label has been assigned'
,
function
(
done
)
{
var
self
=
this
var
chainer
=
new
Sequelize
.
Utils
.
QueryChainer
([
var
chainer
=
new
Sequelize
.
Utils
.
QueryChainer
([
this
.
Article
.
create
({
title
:
'Article'
}),
this
.
Article
.
create
({
title
:
'Article'
}),
this
.
Label
.
create
({
text
:
'Awesomeness'
}),
this
.
Label
.
create
({
text
:
'Awesomeness'
}),
...
@@ -91,8 +86,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
...
@@ -91,8 +86,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
})
})
it
(
'answers false if only some labels have been assigned'
,
function
(
done
)
{
it
(
'answers false if only some labels have been assigned'
,
function
(
done
)
{
var
self
=
this
var
chainer
=
new
Sequelize
.
Utils
.
QueryChainer
([
var
chainer
=
new
Sequelize
.
Utils
.
QueryChainer
([
this
.
Article
.
create
({
title
:
'Article'
}),
this
.
Article
.
create
({
title
:
'Article'
}),
this
.
Label
.
create
({
text
:
'Awesomeness'
}),
this
.
Label
.
create
({
text
:
'Awesomeness'
}),
...
@@ -110,8 +103,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
...
@@ -110,8 +103,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
})
})
it
(
'answers true if all label have been assigned'
,
function
(
done
)
{
it
(
'answers true if all label have been assigned'
,
function
(
done
)
{
var
self
=
this
var
chainer
=
new
Sequelize
.
Utils
.
QueryChainer
([
var
chainer
=
new
Sequelize
.
Utils
.
QueryChainer
([
this
.
Article
.
create
({
title
:
'Article'
}),
this
.
Article
.
create
({
title
:
'Article'
}),
this
.
Label
.
create
({
text
:
'Awesomeness'
}),
this
.
Label
.
create
({
text
:
'Awesomeness'
}),
...
@@ -568,5 +559,4 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
...
@@ -568,5 +559,4 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
})
})
})
})
})
})
})
})
\ No newline at end of file
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