Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex0007 committed Aug 20, 2016
1 parent 7149db1 commit 2e018f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ let createObservableFromQuery = require('../')

test('test if basic query working', t => {
t.plan(2)

return createObservableFromQuery(`
SELECT * FROM item ORDER BY id ASC LIMIT 2
`).toArray()
.do(data => {
t.is(data.length, 2, 'Correct number of items receieved')
t.is(data[0].id, 85435, 'Correct item')
})
}, err => t.fail(err))
})

0 comments on commit 2e018f7

Please sign in to comment.