Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lfkellogg committed Jan 31, 2024
1 parent 4bc0745 commit fd4fe15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/appdistro/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ describe("distribution", () => {

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

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

0 comments on commit fd4fe15

Please sign in to comment.