traintimesPWA/test/tweet.js
Martin Donnelly da2e92003f Twitter grabber
Tweets added to server
New svelte front end
2020-05-04 10:34:41 +01:00

25 lines
520 B
JavaScript

/**
* Created by WebStorm.
* User: martin
* Date: 30/04/2020
* Time: 14:23
*/
const tape = require('tape');
const _test = require('tape-promise').default; // <---- notice 'default'
const test = _test(tape); // decorate tape
const dbmanager = require('../server/db/dbmanager');
const jsonfile = require('jsonfile');
const entityPage = jsonfile.readFileSync('test/data/file001.json');
test('DB tests', async function(t) {
const output = dbmanager.insertOne(entityPage);
console.log(output);
t.end();
});