From 7e273afd5fd477e9a884aa499fde31c747fba23b Mon Sep 17 00:00:00 2001 From: Dominic Coelho Date: Thu, 9 Aug 2018 11:46:20 +0100 Subject: [PATCH] Fix drop tables bug Need to add items and loads to drop table function --- test/getData.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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