不要怂,就是干,撸起袖子干!

Commit 066c5989 by sdepold

first (failing) spec for index

1 parent 3a23a02b
Showing with 7 additions and 10 deletions
...@@ -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'
// // )
// // })
// //})
}) })
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!