mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-02 19:46:39 +08:00
[database] formatting
This commit is contained in:
@@ -20,7 +20,6 @@ const { PATH } = require('../helpers');
|
||||
const TEST_PATH = `${PATH}/push`;
|
||||
|
||||
describe('database().ref().push()', () => {
|
||||
|
||||
it('throws if on complete callback is not a function', () => {
|
||||
try {
|
||||
firebase
|
||||
@@ -86,7 +85,7 @@ describe('database().ref().push()', () => {
|
||||
it('returns an error to the callback', async () => {
|
||||
const callback = sinon.spy();
|
||||
const ref = firebase.database().ref('nope');
|
||||
ref.push('foo', (error) => {
|
||||
ref.push('foo', error => {
|
||||
error.message.should.containEql(`doesn't have permission to access`);
|
||||
callback();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user