Created
November 8, 2019 05:34
-
-
Save tianhaoz95/824ee1f61b2ecbee104d42d2fcaeea9d to your computer and use it in GitHub Desktop.
test fb func prep
This file contains hidden or 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
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