Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Created November 8, 2019 05:34
Show Gist options
  • Save tianhaoz95/824ee1f61b2ecbee104d42d2fcaeea9d to your computer and use it in GitHub Desktop.
Save tianhaoz95/824ee1f61b2ecbee104d42d2fcaeea9d to your computer and use it in GitHub Desktop.
test fb func prep
import funcTest from "firebase-functions-test";
describe("test iwfp api", () => {
let iwfpapi, adminInitStub;
const tester = funcTest();
before(async () => {
adminInitStub = sinon.stub(admin, "initializeApp");
iwfpapi = await import("../src/index");
});
after(() => {
adminInitStub.restore();
tester.cleanup();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment