2
0
mirror of synced 2025-02-18 17:28:24 +00:00

[tests] Fix database push test

This commit is contained in:
Chris Bianca 2017-09-21 17:38:12 +01:00
parent 264ff496a0
commit 1564973454

View File

@ -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) => {