10BC0 Fix test · firebase/firebase-tools@fd4fe15 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd4fe15

Browse files
committed
Fix test
1 parent 4bc0745 commit fd4fe15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/appdistro/client.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ describe("distribution", () => {
327327

328328
it("should throw error if request fails", async () => {
329329
nock(appDistributionOrigin)
330-
.post(`/v1alpha/${releaseName}`)
330+
.post(`/v1alpha/${releaseName}/tests`)
331331
.reply(400, { error: { status: "FAILED_PRECONDITION" } });
332332
await expect(
333333
appDistributionClient.createReleaseTest(releaseName, mockDevices),
@@ -336,7 +336,7 @@ describe("distribution", () => {
336336
});
337337

338338
it("should resolve with ReleaseTest when request succeeds", async () => {
339-
nock(appDistributionOrigin).post(`/v1alpha/${releaseName}`).reply(200, mockReleaseTest);
339+
nock(appDistributionOrigin).post(`/v1alpha/${releaseName}/tests`).reply(200, mockReleaseTest);
340340
await expect(
341341
appDistributionClient.createReleaseTest(releaseName, mockDevices),
342342
).to.be.eventually.deep.eq(mockReleaseTest);

0 commit comments

Comments
 (< 30EE !-- -->0)
0