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 6290d288
authored
Jul 16, 2013
by
Daniel Durante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished moving DAO factory to Buster.
1 parent
7ea02763
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
spec/associations/mixin.spec.js
spec/dao-factory.spec.js
spec/associations/mixin.spec.js
View file @
6290d28
...
@@ -18,6 +18,16 @@ describe(Helpers.getTestDialectTeaser("Mixin"), function() {
...
@@ -18,6 +18,16 @@ describe(Helpers.getTestDialectTeaser("Mixin"), function() {
})
})
})
})
describe
(
'Mixin'
,
function
()
{
var
DAOFactory
=
require
(
"../../lib/dao-factory"
)
it
(
"adds the mixed-in functions to the dao"
,
function
()
{
expect
(
DAOFactory
.
prototype
.
hasOne
).
toBeDefined
()
expect
(
DAOFactory
.
prototype
.
hasMany
).
toBeDefined
()
expect
(
DAOFactory
.
prototype
.
belongsTo
).
toBeDefined
()
})
})
describe
(
'getAssociation'
,
function
()
{
describe
(
'getAssociation'
,
function
()
{
it
(
'returns the respective part of the association for 1:1 associations'
,
function
()
{
it
(
'returns the respective part of the association for 1:1 associations'
,
function
()
{
var
User
=
this
.
sequelize
.
define
(
'User'
,
{})
var
User
=
this
.
sequelize
.
define
(
'User'
,
{})
...
...
spec/dao-factory.spec.js
View file @
6290d28
This diff is collapsed.
Click to expand it.
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