2
0
mirror of synced 2025-01-14 16:36:07 +00:00

19 lines
415 B
JavaScript
Raw Normal View History

2018-04-22 00:00:29 +01:00
const CONTENTS = require('./content');
module.exports = {
2018-04-22 16:04:35 +01:00
CONTENTS,
2018-04-22 00:00:29 +01:00
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),
]);
},
};