mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 12:06:47 +08:00
[database][wip] on/off logic refactor - heavily still wip so things still to change
This commit is contained in:
@@ -22,10 +22,11 @@ import priorityTests from './priorityTests';
|
||||
import DatabaseContents from '../../support/DatabaseContents';
|
||||
|
||||
const testGroups = [
|
||||
issueSpecificTests, factoryTests, keyTests, parentTests, childTests, rootTests,
|
||||
pushTests, onTests, onValueTests, onChildAddedTests, offTests, onceTests, updateTests,
|
||||
removeTests, setTests, transactionTests, queryTests, refTests, isEqualTests,
|
||||
priorityTests,
|
||||
// issueSpecificTests, factoryTests, keyTests, parentTests, childTests, rootTests,
|
||||
// pushTests, onTests, onValueTests, onChildAddedTests, offTests, onceTests, updateTests,
|
||||
// removeTests, setTests, transactionTests, queryTests, refTests, isEqualTests,
|
||||
// priorityTests,
|
||||
onValueTests, onChildAddedTests, offTests,
|
||||
];
|
||||
|
||||
function registerTestSuite(testSuite) {
|
||||
|
||||
@@ -97,6 +97,7 @@ function onTests({ fdescribe, context, it, firebase, tryCatch }) {
|
||||
|
||||
await new Promise((resolve) => {
|
||||
ref.on('value', (snapshot) => {
|
||||
console.log('>>> SNAP',snapshot.val())
|
||||
callback(snapshot.val());
|
||||
resolve();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user