Einkaufslisten anzeigen, Datenbankeinbindung

This commit is contained in:
Lukas Nowy
2018-10-27 01:10:46 +02:00
parent 5e3c83707f
commit 8e7d96310f
425 changed files with 77158 additions and 3 deletions

20
express-server/node_modules/postgresql/test/index.js generated vendored Normal file
View File

@ -0,0 +1,20 @@
const postgresql = require('../');
const expect = require('chai').expect;
const rimraf = require('rimraf');
rimraf.sync('./tmp');
describe('init', function () {
this.timeout(5000);
it('should refuse to init a directory that is not empty', function () {
expect(function() {
postgresql.initdb('./');
}).to.throw;
});
it('should init a database directory', function (done) {
postgresql.initdb('./tmp', function () {
done();
});
});
});