This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions'); // To stub config() | |
const admin = require('firebase-admin'); // To get credential cert for initializeApp | |
const firebase = require('firebase'); // To sign in test user and test database writes | |
const assert = require('chai').assert; | |
const sinon = require('sinon'); | |
// https://firebase.google.com/docs/functions/unit-testing | |
// The functions make use of 'firebase-admin', whereas client-side code uses 'firebase'. | |
// We initialze 'firebase' here to mock client-side code. |
NewerOlder