UNPKG

firebase-tools

Version:
14 lines (10 loc) 460 B
const axios = require("axios"); const chai = require("chai"); describe("greet-the-world", () => { it("should respond with the configured greeting", async () => { const expected = "Hello World from greet-the-world"; const httpFunctionUri = "http://localhost:5001/demo-test/us-central1/ext-greet-the-world-greetTheWorld/"; const res = await axios.get(httpFunctionUri); return chai.expect(res.data).to.eql(expected); }).timeout(10000); });