[go: nahoru, domu]

Skip to content

Commit

Permalink
add sdkconfig test (firebase#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall committed Apr 13, 2020
1 parent faa4c7d commit 76d0df8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/client-integration-tests/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,24 @@ describe("deployHosting", () => {
}).timeout(10 * 1e3); // Deploying takes several steps.
});

describe("appsList", () => {
describe("apps:list", () => {
it("should list apps configuration", async () => {
const apps = await client.apps.list("web", { project: process.env.FBTOOLS_TARGET_PROJECT });

expect(apps).to.have.length.greaterThan(0);
});
});

describe("apps:sdkconfig", () => {
it("should return the web app configuration", async () => {
const opts = { project: process.env.FBTOOLS_TARGET_PROJECT };
const apps = await client.apps.list("web", opts);
expect(apps).to.have.length.greaterThan(0);
const appID = apps[0].appId;

const config = await client.apps.sdkconfig("web", appID, opts);

expect(config.sdkConfig).to.exist;
expect(config.sdkConfig.appId).to.equal(appID);
});
});

0 comments on commit 76d0df8

Please sign in to comment.