1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-13 20:15:56 +00:00

Both types of tests are now working

This commit is contained in:
Scott Tolksdorf
2017-01-06 00:48:52 -05:00
parent 5820564894
commit 66ca09b36d
5 changed files with 36 additions and 33 deletions

View File

@@ -25,6 +25,24 @@ app.use(mw.admin);
app.use(require('./server/brew.api.js'));
app.use(require('./server/interface.routes.js'));
setTimeout(()=>{
var test = require('./server/brew.data.js');
test.create({text : 'test'})
.then((brew) => {
console.log(brew);
})
.catch(console.log);
test.get({})
.then((brew) => {
console.log(brew);
})
.catch(console.log);
}, 1000);
//app.use(require('./server/admin.api.js'));