Skip to content

Commit

Permalink
Fix drop tables bug
Browse files Browse the repository at this point in the history
Need to add items and loads to drop table function
  • Loading branch information
VirtualDOMinic committed Aug 9, 2018
1 parent 96b0689 commit 7e273af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/getData.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@ const getData = require('../src/queries/getData');
tape('tape is working', t => {
t.equals(1,1,'one is one');
t.end()
})

tape('test get data', t => {
runDbBuild((err) => {
const expected = '';
getData('SELECT * FROM users', (err, gotdata) =>
t.deepEquals(gotdata, expected, 'getData should return itself'));
t.end();
})
})

0 comments on commit 7e273af

Please sign in to comment.