From 1572aa10a2e25e35e705ed384f4c9eae2f138fab Mon Sep 17 00:00:00 2001 From: Salakar Date: Sun, 25 Mar 2018 07:45:19 +0100 Subject: [PATCH] [tests] new test infra --- tests-new/e2e/firestore/transactions.e2e.js | 1 - tests-new/e2e/init.js | 11 ----------- tests-new/e2e/mocha.opts | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/tests-new/e2e/firestore/transactions.e2e.js b/tests-new/e2e/firestore/transactions.e2e.js index f6d716b1..9d8c625c 100644 --- a/tests-new/e2e/firestore/transactions.e2e.js +++ b/tests-new/e2e/firestore/transactions.e2e.js @@ -6,7 +6,6 @@ describe('firestore.runTransaction', () => { }); it('should set, update and delete transactionally and allow a return value', async () => { - const firebase = bridge.module; let deleteMe = false; const firestore = firebase.firestore(); diff --git a/tests-new/e2e/init.js b/tests-new/e2e/init.js index 0ec9edc7..c54e28f9 100755 --- a/tests-new/e2e/init.js +++ b/tests-new/e2e/init.js @@ -13,19 +13,8 @@ after(async () => { await detox.cleanup(); }); -// bridge.beforeContextReset = () => { -// console.log('hello'); -// }; - Object.defineProperty(global, 'firebase', { get() { return bridge.module; }, - set() { - // do nothing - }, }); - -// Object.defineProperty(global, 'firebase', { value: undefined }); - -// delete global.firebase; diff --git a/tests-new/e2e/mocha.opts b/tests-new/e2e/mocha.opts index fdb7df9f..bd8c68a6 100755 --- a/tests-new/e2e/mocha.opts +++ b/tests-new/e2e/mocha.opts @@ -1,6 +1,6 @@ --recursive --timeout 120000 ---slow 2000 +--slow 2200 --bail --exit --require ./bridge/env/node