[tests] new test infra

This commit is contained in:
Salakar 2018-03-25 07:45:19 +01:00
parent ebdea3d68f
commit 1572aa10a2
3 changed files with 1 additions and 13 deletions

View File

@ -6,7 +6,6 @@ describe('firestore.runTransaction', () => {
}); });
it('should set, update and delete transactionally and allow a return value', async () => { it('should set, update and delete transactionally and allow a return value', async () => {
const firebase = bridge.module;
let deleteMe = false; let deleteMe = false;
const firestore = firebase.firestore(); const firestore = firebase.firestore();

View File

@ -13,19 +13,8 @@ after(async () => {
await detox.cleanup(); await detox.cleanup();
}); });
// bridge.beforeContextReset = () => {
// console.log('hello');
// };
Object.defineProperty(global, 'firebase', { Object.defineProperty(global, 'firebase', {
get() { get() {
return bridge.module; return bridge.module;
}, },
set() {
// do nothing
},
}); });
// Object.defineProperty(global, 'firebase', { value: undefined });
// delete global.firebase;

View File

@ -1,6 +1,6 @@
--recursive --recursive
--timeout 120000 --timeout 120000
--slow 2000 --slow 2200
--bail --bail
--exit --exit
--require ./bridge/env/node --require ./bridge/env/node