diff --git a/test/getData.test.js b/test/getData.test.js index ec3be21..6d78980 100644 --- a/test/getData.test.js +++ b/test/getData.test.js @@ -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(); + }) }) \ No newline at end of file