mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-09 22:43:19 +08:00
19 lines
415 B
JavaScript
19 lines
415 B
JavaScript
const CONTENTS = require('./content');
|
|
|
|
module.exports = {
|
|
CONTENTS,
|
|
setDatabaseContents() {
|
|
const database = firebaseAdmin.database();
|
|
return Promise.all([
|
|
database.ref('tests/types').set(CONTENTS.DEFAULT),
|
|
database.ref('tests/priority').setWithPriority(
|
|
{
|
|
foo: 'bar',
|
|
},
|
|
666
|
|
),
|
|
database.ref('tests/query').set(CONTENTS.QUERY),
|
|
]);
|
|
},
|
|
};
|