Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ninadbstack committed Oct 23, 2024
1 parent dd158bc commit 4d925e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cli-build/test/id.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ describe('percy build:id', () => {

expect(logger.stderr).toEqual([]);
expect(logger.stdout).toEqual(['123']);
expect(percyServer.requests).toEqual([['/percy/healthcheck']]);
expect(percyServer.requests.length).toEqual(1);
expect(percyServer.requests[0][0]).toEqual('/percy/healthcheck');
});

it('can call the /percy/healthcheck endpoint at an alternate port', async () => {
Expand All @@ -40,7 +41,8 @@ describe('percy build:id', () => {

expect(logger.stderr).toEqual([]);
expect(logger.stdout).toEqual(['456']);
expect(percyServer.requests).toEqual([['/percy/healthcheck']]);
expect(percyServer.requests.length).toEqual(1);
expect(percyServer.requests[0][0]).toEqual('/percy/healthcheck');
});

it('logs an error when the endpoint errors', async () => {
Expand Down

0 comments on commit 4d925e0

Please sign in to comment.