da2e92003f
Tweets added to server New svelte front end
25 lines
520 B
JavaScript
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();
|
|
});
|