From b068b4ff4270aadd7470a09ee3e53f652be0c25f Mon Sep 17 00:00:00 2001 From: Salakar Date: Mon, 14 Aug 2017 14:33:14 +0100 Subject: [PATCH] [tests][*] removed focus from misc tests --- tests/src/tests/database/ref/childTests.js | 4 ++-- tests/src/tests/database/ref/factoryTests.js | 4 ++-- tests/src/tests/database/ref/isEqualTests.js | 4 ++-- tests/src/tests/database/ref/issueSpecificTests.js | 8 ++++---- tests/src/tests/database/ref/keyTests.js | 4 ++-- tests/src/tests/database/ref/offTests.js | 4 ++-- tests/src/tests/database/ref/on/onChildAddedTests.js | 6 +++--- tests/src/tests/database/ref/on/onTests.js | 4 ++-- tests/src/tests/database/ref/on/onValueTests.js | 4 ++-- tests/src/tests/database/ref/onceTests.js | 4 ++-- tests/src/tests/database/ref/parentTests.js | 4 ++-- tests/src/tests/database/ref/priorityTests.js | 4 ++-- tests/src/tests/database/ref/pushTests.js | 4 ++-- tests/src/tests/database/ref/queryTests.js | 4 ++-- tests/src/tests/database/ref/refTests.js | 4 ++-- tests/src/tests/database/ref/removeTests.js | 4 ++-- tests/src/tests/database/ref/rootTests.js | 4 ++-- tests/src/tests/database/ref/setTests.js | 4 ++-- tests/src/tests/database/ref/transactionTests.js | 4 ++-- tests/src/tests/database/ref/updateTests.js | 4 ++-- tests/src/tests/storage/storageTests.js | 4 ++-- 21 files changed, 45 insertions(+), 45 deletions(-) diff --git a/tests/src/tests/database/ref/childTests.js b/tests/src/tests/database/ref/childTests.js index 82a26f3c..9a97c434 100644 --- a/tests/src/tests/database/ref/childTests.js +++ b/tests/src/tests/database/ref/childTests.js @@ -1,5 +1,5 @@ -function childTests({ fdescribe, it, context, firebase }) { - fdescribe('ref().child', () => { +function childTests({ describe, it, context, firebase }) { + describe('ref().child', () => { context('when passed a shallow path', () => { it('returns correct child ref', () => { // Setup diff --git a/tests/src/tests/database/ref/factoryTests.js b/tests/src/tests/database/ref/factoryTests.js index d2ce57aa..3a4e0c1b 100644 --- a/tests/src/tests/database/ref/factoryTests.js +++ b/tests/src/tests/database/ref/factoryTests.js @@ -1,7 +1,7 @@ import DatabaseContents from '../../support/DatabaseContents'; -function factoryTests({ fdescribe, it, firebase }) { - fdescribe('ref()', () => { +function factoryTests({ describe, it, firebase }) { + describe('ref()', () => { it('returns root reference when provided no path', () => { // Setup diff --git a/tests/src/tests/database/ref/isEqualTests.js b/tests/src/tests/database/ref/isEqualTests.js index e334e69f..3fee2a6a 100644 --- a/tests/src/tests/database/ref/isEqualTests.js +++ b/tests/src/tests/database/ref/isEqualTests.js @@ -1,5 +1,5 @@ -function isEqualTests({ fdescribe, before, it, firebase }) { - fdescribe('ref().isEqual()', () => { +function isEqualTests({ describe, before, it, firebase }) { + describe('ref().isEqual()', () => { before(() => { this.ref = firebase.native.database().ref('tests/types'); }); diff --git a/tests/src/tests/database/ref/issueSpecificTests.js b/tests/src/tests/database/ref/issueSpecificTests.js index 6f94c653..9abbb868 100644 --- a/tests/src/tests/database/ref/issueSpecificTests.js +++ b/tests/src/tests/database/ref/issueSpecificTests.js @@ -1,8 +1,8 @@ import should from 'should'; import DatabaseContents from '../../support/DatabaseContents'; -function issueTests({ fdescribe, it, context, firebase }) { - fdescribe('issue_100', () => { +function issueTests({ describe, it, context, firebase }) { + describe('issue_100', () => { context('array-like values should', () => { it('return null in returned array at positions where a key is missing', async () => { // Setup @@ -18,7 +18,7 @@ function issueTests({ fdescribe, it, context, firebase }) { }); }); - fdescribe('issue_108', () => { + describe('issue_108', () => { context('filters using floats', () => { it('return correct results', async () => { // Setup @@ -66,7 +66,7 @@ function issueTests({ fdescribe, it, context, firebase }) { }); }); - fdescribe('issue_171', () => { + describe('issue_171', () => { context('non array-like values should', () => { it('return as objects', async () => { // Setup diff --git a/tests/src/tests/database/ref/keyTests.js b/tests/src/tests/database/ref/keyTests.js index 290a7aac..30b2aac0 100644 --- a/tests/src/tests/database/ref/keyTests.js +++ b/tests/src/tests/database/ref/keyTests.js @@ -1,5 +1,5 @@ -function keyTests({ fdescribe, it, firebase }) { - fdescribe('ref().key', () => { +function keyTests({ describe, it, firebase }) { + describe('ref().key', () => { it('returns null for root ref', () => { // Setup diff --git a/tests/src/tests/database/ref/offTests.js b/tests/src/tests/database/ref/offTests.js index 7d439fcc..6c7835a1 100644 --- a/tests/src/tests/database/ref/offTests.js +++ b/tests/src/tests/database/ref/offTests.js @@ -3,8 +3,8 @@ import sinon from 'sinon'; import DatabaseContents from '../../support/DatabaseContents'; -function offTests({ fdescribe, it, xcontext, context, firebase }) { - fdescribe('ref().off()', () => { +function offTests({ describe, it, xcontext, context, firebase }) { + describe('ref().off()', () => { it('doesn\'t unbind children callbacks', async () => { // Setup diff --git a/tests/src/tests/database/ref/on/onChildAddedTests.js b/tests/src/tests/database/ref/on/onChildAddedTests.js index 0e94d281..0eb80ab5 100644 --- a/tests/src/tests/database/ref/on/onChildAddedTests.js +++ b/tests/src/tests/database/ref/on/onChildAddedTests.js @@ -1,9 +1,9 @@ import 'should-sinon'; import Promise from 'bluebird'; -export default function onChildAddedTests({ fdescribe, beforeEach, afterEach, it, firebase }) { - fdescribe('ref().on(\'child_added\')', () => { - fdescribe('the snapshot', () => { +export default function onChildAddedTests({ describe, beforeEach, afterEach, it, firebase }) { + describe('ref().on(\'child_added\')', () => { + describe('the snapshot', () => { let ref; let childRef; let childVal; diff --git a/tests/src/tests/database/ref/on/onTests.js b/tests/src/tests/database/ref/on/onTests.js index eff5d97d..32aeb754 100644 --- a/tests/src/tests/database/ref/on/onTests.js +++ b/tests/src/tests/database/ref/on/onTests.js @@ -1,7 +1,7 @@ import 'should-sinon'; -function onTests({ fdescribe, it, firebase, context }) { - fdescribe('ref().on()', () => { +function onTests({ describe, it, firebase, context }) { + describe('ref().on()', () => { // Observed Web API Behaviour context('when no eventName is provided', () => { it('then raises an error', () => { diff --git a/tests/src/tests/database/ref/on/onValueTests.js b/tests/src/tests/database/ref/on/onValueTests.js index d7b74aeb..77aa992d 100644 --- a/tests/src/tests/database/ref/on/onValueTests.js +++ b/tests/src/tests/database/ref/on/onValueTests.js @@ -4,8 +4,8 @@ import Promise from 'bluebird'; import DatabaseContents from '../../../support/DatabaseContents'; -function onTests({ fdescribe, context, it, firebase, tryCatch }) { - fdescribe('ref().on(\'value\')', () => { +function onTests({ describe, context, it, firebase, tryCatch }) { + describe('ref().on(\'value\')', () => { // Documented Web API Behaviour it('returns the success callback', () => { // Setup diff --git a/tests/src/tests/database/ref/onceTests.js b/tests/src/tests/database/ref/onceTests.js index 5fee3029..3b7fe489 100644 --- a/tests/src/tests/database/ref/onceTests.js +++ b/tests/src/tests/database/ref/onceTests.js @@ -3,8 +3,8 @@ import 'should-sinon'; import DatabaseContents from '../../support/DatabaseContents'; -function onceTests({ fdescribe, firebase, it, tryCatch }) { - fdescribe('ref().once()', () => { +function onceTests({ describe, firebase, it, tryCatch }) { + describe('ref().once()', () => { it('returns a promise', () => { // Setup diff --git a/tests/src/tests/database/ref/parentTests.js b/tests/src/tests/database/ref/parentTests.js index 0b022eca..95ec2d03 100644 --- a/tests/src/tests/database/ref/parentTests.js +++ b/tests/src/tests/database/ref/parentTests.js @@ -1,5 +1,5 @@ -function parentTests({ fdescribe, context, it, firebase }) { - fdescribe('ref().parent', () => { +function parentTests({ describe, context, it, firebase }) { + describe('ref().parent', () => { context('on the root ref', () => { it('returns null', () => { // Setup diff --git a/tests/src/tests/database/ref/priorityTests.js b/tests/src/tests/database/ref/priorityTests.js index 1ab9e624..cc73ff93 100644 --- a/tests/src/tests/database/ref/priorityTests.js +++ b/tests/src/tests/database/ref/priorityTests.js @@ -1,7 +1,7 @@ import DatabaseContents from '../../support/DatabaseContents'; -function setTests({ fdescribe, it, firebase }) { - fdescribe('ref().priority', () => { +function setTests({ describe, it, firebase }) { + describe('ref().priority', () => { it('setPriority() should correctly set a priority for all non-null values', async () => { await Promise.map(Object.keys(DatabaseContents.DEFAULT), async (dataRef) => { // Setup diff --git a/tests/src/tests/database/ref/pushTests.js b/tests/src/tests/database/ref/pushTests.js index c464a19e..063ce35c 100644 --- a/tests/src/tests/database/ref/pushTests.js +++ b/tests/src/tests/database/ref/pushTests.js @@ -3,8 +3,8 @@ import 'should-sinon'; import DatabaseContents from '../../support/DatabaseContents'; -function pushTests({ fdescribe, it, firebase }) { - fdescribe('ref().push()', () => { +function pushTests({ describe, it, firebase }) { + describe('ref().push()', () => { it('returns a ref that can be used to set value later', async () => { // Setup diff --git a/tests/src/tests/database/ref/queryTests.js b/tests/src/tests/database/ref/queryTests.js index c66f0597..5282fb97 100644 --- a/tests/src/tests/database/ref/queryTests.js +++ b/tests/src/tests/database/ref/queryTests.js @@ -1,8 +1,8 @@ import 'should-sinon'; import Promise from 'bluebird'; -function queryTests({ fdescribe, it, firebase, tryCatch }) { - fdescribe('ref query', () => { +function queryTests({ describe, it, firebase, tryCatch }) { + describe('ref query', () => { it('orderByChild().equalTo()', () => { return new Promise((resolve, reject) => { const successCb = tryCatch((snapshot) => { diff --git a/tests/src/tests/database/ref/refTests.js b/tests/src/tests/database/ref/refTests.js index ca3060c3..787bce9d 100644 --- a/tests/src/tests/database/ref/refTests.js +++ b/tests/src/tests/database/ref/refTests.js @@ -1,5 +1,5 @@ -function refTests({ fdescribe, it, firebase }) { - fdescribe('ref().ref', () => { +function refTests({ describe, it, firebase }) { + describe('ref().ref', () => { it('returns the reference', () => { // Setup const ref = firebase.native.database().ref(); diff --git a/tests/src/tests/database/ref/removeTests.js b/tests/src/tests/database/ref/removeTests.js index f22c3076..701fecd2 100644 --- a/tests/src/tests/database/ref/removeTests.js +++ b/tests/src/tests/database/ref/removeTests.js @@ -1,7 +1,7 @@ import DatabaseContents from '../../support/DatabaseContents'; -function removeTests({ fdescribe, it, firebase }) { - fdescribe('ref().remove()', () => { +function removeTests({ describe, it, firebase }) { + describe('ref().remove()', () => { it('returns a promise', () => { // Setup diff --git a/tests/src/tests/database/ref/rootTests.js b/tests/src/tests/database/ref/rootTests.js index 4ab68642..d6fc49b9 100644 --- a/tests/src/tests/database/ref/rootTests.js +++ b/tests/src/tests/database/ref/rootTests.js @@ -1,5 +1,5 @@ -function rootTests({ fdescribe, it, context, firebase }) { - fdescribe('ref().root', () => { +function rootTests({ describe, it, context, firebase }) { + describe('ref().root', () => { context('when called on a non-root reference', () => { it('returns root ref', () => { // Setup diff --git a/tests/src/tests/database/ref/setTests.js b/tests/src/tests/database/ref/setTests.js index 20251252..7a921442 100644 --- a/tests/src/tests/database/ref/setTests.js +++ b/tests/src/tests/database/ref/setTests.js @@ -1,7 +1,7 @@ import DatabaseContents from '../../support/DatabaseContents'; -function setTests({ fdescribe, it, xit, firebase }) { - fdescribe('ref.set()', () => { +function setTests({ describe, it, xit, firebase }) { + describe('ref.set()', () => { it('returns a promise', async () => { // Setup diff --git a/tests/src/tests/database/ref/transactionTests.js b/tests/src/tests/database/ref/transactionTests.js index 1c255b9c..03579a50 100644 --- a/tests/src/tests/database/ref/transactionTests.js +++ b/tests/src/tests/database/ref/transactionTests.js @@ -1,7 +1,7 @@ import Promise from 'bluebird'; -function onTests({ fdescribe, it, firebase, tryCatch }) { - fdescribe('ref.transaction()', () => { +function onTests({ describe, it, firebase, tryCatch }) { + describe('ref.transaction()', () => { it('increments a value on a ref', () => { return new Promise((resolve, reject) => { let valueBefore = 1; diff --git a/tests/src/tests/database/ref/updateTests.js b/tests/src/tests/database/ref/updateTests.js index 3271a57c..09af4383 100644 --- a/tests/src/tests/database/ref/updateTests.js +++ b/tests/src/tests/database/ref/updateTests.js @@ -1,8 +1,8 @@ import Promise from 'bluebird'; import DatabaseContents from '../../support/DatabaseContents'; -function updateTests({ fdescribe, it, firebase }) { - fdescribe('ref().update()', () => { +function updateTests({ describe, it, firebase }) { + describe('ref().update()', () => { it('returns a promise', () => { // Setup diff --git a/tests/src/tests/storage/storageTests.js b/tests/src/tests/storage/storageTests.js index cbb86efc..ca2d828a 100644 --- a/tests/src/tests/storage/storageTests.js +++ b/tests/src/tests/storage/storageTests.js @@ -1,7 +1,7 @@ import RNfirebase from './../../../firebase/firebase'; -function storageTests({ describe, fdescribe, it, firebase, tryCatch }) { - fdescribe('ref(:path)', () => { +function storageTests({ describe, it, firebase, tryCatch }) { + describe('ref(:path)', () => { it('toString() should return the correct bucket path to the file', () => { const app = RNfirebase.app(); firebase.native.storage().ref('/uploadNope.jpeg').toString()