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 066c5989
authored
Dec 09, 2011
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first (failing) spec for index
1 parent
3a23a02b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
spec/query-generator.mysql.spec.js
spec/query-generator.mysql.spec.js
View file @
066c598
...
@@ -124,6 +124,13 @@ describe('QueryGenerator', function() {
...
@@ -124,6 +124,13 @@ describe('QueryGenerator', function() {
}
}
],
],
'addIndexQuery'
:
[
{
arguments
:
[
'User'
,
[
'username'
,
'isAdmin'
]],
expectation
:
'CREATE INDEX user_username_is_admin ON User username, isAdmin'
}
],
'hashToWhereConditions'
:
[
'hashToWhereConditions'
:
[
{
{
arguments
:
[{
id
:
[
1
,
2
,
3
]
}],
arguments
:
[{
id
:
[
1
,
2
,
3
]
}],
...
@@ -143,14 +150,4 @@ describe('QueryGenerator', function() {
...
@@ -143,14 +150,4 @@ describe('QueryGenerator', function() {
})
})
})
})
})
})
// //describe('addIndexQuery', function() {
// // it("only returns the basics if only necessary parameters are passed", function() {
// // expect(
// // QueryGenerator.addIndexQuery('User', ['username', 'isAdmin'])
// // ).toEqual(
// // 'CREATE INDEX user_username_is_admin ON User username, isAdmin'
// // )
// // })
// //})
})
})
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