[tests][*] removed focus from misc tests

This commit is contained in:
Salakar 2017-08-14 14:33:14 +01:00
parent 678abdf0e6
commit b068b4ff42
21 changed files with 45 additions and 45 deletions

View File

@ -1,5 +1,5 @@
function childTests({ fdescribe, it, context, firebase }) { function childTests({ describe, it, context, firebase }) {
fdescribe('ref().child', () => { describe('ref().child', () => {
context('when passed a shallow path', () => { context('when passed a shallow path', () => {
it('returns correct child ref', () => { it('returns correct child ref', () => {
// Setup // Setup

View File

@ -1,7 +1,7 @@
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function factoryTests({ fdescribe, it, firebase }) { function factoryTests({ describe, it, firebase }) {
fdescribe('ref()', () => { describe('ref()', () => {
it('returns root reference when provided no path', () => { it('returns root reference when provided no path', () => {
// Setup // Setup

View File

@ -1,5 +1,5 @@
function isEqualTests({ fdescribe, before, it, firebase }) { function isEqualTests({ describe, before, it, firebase }) {
fdescribe('ref().isEqual()', () => { describe('ref().isEqual()', () => {
before(() => { before(() => {
this.ref = firebase.native.database().ref('tests/types'); this.ref = firebase.native.database().ref('tests/types');
}); });

View File

@ -1,8 +1,8 @@
import should from 'should'; import should from 'should';
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function issueTests({ fdescribe, it, context, firebase }) { function issueTests({ describe, it, context, firebase }) {
fdescribe('issue_100', () => { describe('issue_100', () => {
context('array-like values should', () => { context('array-like values should', () => {
it('return null in returned array at positions where a key is missing', async () => { it('return null in returned array at positions where a key is missing', async () => {
// Setup // Setup
@ -18,7 +18,7 @@ function issueTests({ fdescribe, it, context, firebase }) {
}); });
}); });
fdescribe('issue_108', () => { describe('issue_108', () => {
context('filters using floats', () => { context('filters using floats', () => {
it('return correct results', async () => { it('return correct results', async () => {
// Setup // Setup
@ -66,7 +66,7 @@ function issueTests({ fdescribe, it, context, firebase }) {
}); });
}); });
fdescribe('issue_171', () => { describe('issue_171', () => {
context('non array-like values should', () => { context('non array-like values should', () => {
it('return as objects', async () => { it('return as objects', async () => {
// Setup // Setup

View File

@ -1,5 +1,5 @@
function keyTests({ fdescribe, it, firebase }) { function keyTests({ describe, it, firebase }) {
fdescribe('ref().key', () => { describe('ref().key', () => {
it('returns null for root ref', () => { it('returns null for root ref', () => {
// Setup // Setup

View File

@ -3,8 +3,8 @@ import sinon from 'sinon';
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function offTests({ fdescribe, it, xcontext, context, firebase }) { function offTests({ describe, it, xcontext, context, firebase }) {
fdescribe('ref().off()', () => { describe('ref().off()', () => {
it('doesn\'t unbind children callbacks', async () => { it('doesn\'t unbind children callbacks', async () => {
// Setup // Setup

View File

@ -1,9 +1,9 @@
import 'should-sinon'; import 'should-sinon';
import Promise from 'bluebird'; import Promise from 'bluebird';
export default function onChildAddedTests({ fdescribe, beforeEach, afterEach, it, firebase }) { export default function onChildAddedTests({ describe, beforeEach, afterEach, it, firebase }) {
fdescribe('ref().on(\'child_added\')', () => { describe('ref().on(\'child_added\')', () => {
fdescribe('the snapshot', () => { describe('the snapshot', () => {
let ref; let ref;
let childRef; let childRef;
let childVal; let childVal;

View File

@ -1,7 +1,7 @@
import 'should-sinon'; import 'should-sinon';
function onTests({ fdescribe, it, firebase, context }) { function onTests({ describe, it, firebase, context }) {
fdescribe('ref().on()', () => { describe('ref().on()', () => {
// Observed Web API Behaviour // Observed Web API Behaviour
context('when no eventName is provided', () => { context('when no eventName is provided', () => {
it('then raises an error', () => { it('then raises an error', () => {

View File

@ -4,8 +4,8 @@ import Promise from 'bluebird';
import DatabaseContents from '../../../support/DatabaseContents'; import DatabaseContents from '../../../support/DatabaseContents';
function onTests({ fdescribe, context, it, firebase, tryCatch }) { function onTests({ describe, context, it, firebase, tryCatch }) {
fdescribe('ref().on(\'value\')', () => { describe('ref().on(\'value\')', () => {
// Documented Web API Behaviour // Documented Web API Behaviour
it('returns the success callback', () => { it('returns the success callback', () => {
// Setup // Setup

View File

@ -3,8 +3,8 @@ import 'should-sinon';
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function onceTests({ fdescribe, firebase, it, tryCatch }) { function onceTests({ describe, firebase, it, tryCatch }) {
fdescribe('ref().once()', () => { describe('ref().once()', () => {
it('returns a promise', () => { it('returns a promise', () => {
// Setup // Setup

View File

@ -1,5 +1,5 @@
function parentTests({ fdescribe, context, it, firebase }) { function parentTests({ describe, context, it, firebase }) {
fdescribe('ref().parent', () => { describe('ref().parent', () => {
context('on the root ref', () => { context('on the root ref', () => {
it('returns null', () => { it('returns null', () => {
// Setup // Setup

View File

@ -1,7 +1,7 @@
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function setTests({ fdescribe, it, firebase }) { function setTests({ describe, it, firebase }) {
fdescribe('ref().priority', () => { describe('ref().priority', () => {
it('setPriority() should correctly set a priority for all non-null values', async () => { it('setPriority() should correctly set a priority for all non-null values', async () => {
await Promise.map(Object.keys(DatabaseContents.DEFAULT), async (dataRef) => { await Promise.map(Object.keys(DatabaseContents.DEFAULT), async (dataRef) => {
// Setup // Setup

View File

@ -3,8 +3,8 @@ import 'should-sinon';
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function pushTests({ fdescribe, it, firebase }) { function pushTests({ describe, it, firebase }) {
fdescribe('ref().push()', () => { describe('ref().push()', () => {
it('returns a ref that can be used to set value later', async () => { it('returns a ref that can be used to set value later', async () => {
// Setup // Setup

View File

@ -1,8 +1,8 @@
import 'should-sinon'; import 'should-sinon';
import Promise from 'bluebird'; import Promise from 'bluebird';
function queryTests({ fdescribe, it, firebase, tryCatch }) { function queryTests({ describe, it, firebase, tryCatch }) {
fdescribe('ref query', () => { describe('ref query', () => {
it('orderByChild().equalTo()', () => { it('orderByChild().equalTo()', () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const successCb = tryCatch((snapshot) => { const successCb = tryCatch((snapshot) => {

View File

@ -1,5 +1,5 @@
function refTests({ fdescribe, it, firebase }) { function refTests({ describe, it, firebase }) {
fdescribe('ref().ref', () => { describe('ref().ref', () => {
it('returns the reference', () => { it('returns the reference', () => {
// Setup // Setup
const ref = firebase.native.database().ref(); const ref = firebase.native.database().ref();

View File

@ -1,7 +1,7 @@
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function removeTests({ fdescribe, it, firebase }) { function removeTests({ describe, it, firebase }) {
fdescribe('ref().remove()', () => { describe('ref().remove()', () => {
it('returns a promise', () => { it('returns a promise', () => {
// Setup // Setup

View File

@ -1,5 +1,5 @@
function rootTests({ fdescribe, it, context, firebase }) { function rootTests({ describe, it, context, firebase }) {
fdescribe('ref().root', () => { describe('ref().root', () => {
context('when called on a non-root reference', () => { context('when called on a non-root reference', () => {
it('returns root ref', () => { it('returns root ref', () => {
// Setup // Setup

View File

@ -1,7 +1,7 @@
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function setTests({ fdescribe, it, xit, firebase }) { function setTests({ describe, it, xit, firebase }) {
fdescribe('ref.set()', () => { describe('ref.set()', () => {
it('returns a promise', async () => { it('returns a promise', async () => {
// Setup // Setup

View File

@ -1,7 +1,7 @@
import Promise from 'bluebird'; import Promise from 'bluebird';
function onTests({ fdescribe, it, firebase, tryCatch }) { function onTests({ describe, it, firebase, tryCatch }) {
fdescribe('ref.transaction()', () => { describe('ref.transaction()', () => {
it('increments a value on a ref', () => { it('increments a value on a ref', () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let valueBefore = 1; let valueBefore = 1;

View File

@ -1,8 +1,8 @@
import Promise from 'bluebird'; import Promise from 'bluebird';
import DatabaseContents from '../../support/DatabaseContents'; import DatabaseContents from '../../support/DatabaseContents';
function updateTests({ fdescribe, it, firebase }) { function updateTests({ describe, it, firebase }) {
fdescribe('ref().update()', () => { describe('ref().update()', () => {
it('returns a promise', () => { it('returns a promise', () => {
// Setup // Setup

View File

@ -1,7 +1,7 @@
import RNfirebase from './../../../firebase/firebase'; import RNfirebase from './../../../firebase/firebase';
function storageTests({ describe, fdescribe, it, firebase, tryCatch }) { function storageTests({ describe, it, firebase, tryCatch }) {
fdescribe('ref(:path)', () => { describe('ref(:path)', () => {
it('toString() should return the correct bucket path to the file', () => { it('toString() should return the correct bucket path to the file', () => {
const app = RNfirebase.app(); const app = RNfirebase.app();
firebase.native.storage().ref('/uploadNope.jpeg').toString() firebase.native.storage().ref('/uploadNope.jpeg').toString()