[tests] Fix database push test
This commit is contained in:
parent
264ff496a0
commit
1564973454
@ -61,10 +61,11 @@ function pushTests({ describe, it, firebase }) {
|
|||||||
return ref.once('value')
|
return ref.once('value')
|
||||||
.then((snapshot) => {
|
.then((snapshot) => {
|
||||||
originalListValue = snapshot.val();
|
originalListValue = snapshot.val();
|
||||||
return ref.push(valueToAddToList);
|
newItemRef = ref.push(valueToAddToList);
|
||||||
|
return newItemRef;
|
||||||
})
|
})
|
||||||
.then((pushRef) => {
|
.then((val) => {
|
||||||
newItemRef = pushRef;
|
// val should be void
|
||||||
return newItemRef.once('value');
|
return newItemRef.once('value');
|
||||||
})
|
})
|
||||||
.then((snapshot) => {
|
.then((snapshot) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user