fix(core): update

This commit is contained in:
Philipp Kunz 2021-11-12 17:32:43 +01:00
parent 54060deb8f
commit cf1ec7f9eb

View File

@ -19,7 +19,7 @@ let testDb: smartdata.SmartdataDb;
let smartdataOptions: smartdata.IMongoDescriptor;
let mongod: mongoPlugin.MongoMemoryServer;
tap.test('should create a testinstance as database', async () => {
tap.skip.test('should create a testinstance as database', async () => {
mongod = await mongoPlugin.MongoMemoryServer.create();
console.log('created mongod instance');
console.log('mongod started');
@ -31,6 +31,14 @@ tap.test('should create a testinstance as database', async () => {
await testDb.init();
});
tap.test('should connect to atlas', async (tools) => {
const databaseName = `test-smartdata-${smartunique.shortId()}`;
testDb = new smartdata.SmartdataDb({
mongoDbUrl: testQenv.getEnvVarOnDemand('MONGO_URL'),
mongoDbName: databaseName,
});
});
let easyStore: smartdata.EasyStore<{
key1: string;
key2: string;