Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifercr07 committed Oct 7, 2024
1 parent a06e8ca commit 83d1deb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/__tests__/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('executeShellCommandOnServer', () => {

const result = await executeShellCommandOnServer(mockCmd, mockCmdOptions);

expect(result).toBe('Error: Error: Unexpected response structure');
expect(result).toBe('Error: Unexpected response structure');
expect(WebService.post).toHaveBeenCalledWith(
mockCmdExecURL,
mockCmdOptions,
Expand All @@ -58,7 +58,7 @@ describe('executeShellCommandOnServer', () => {
mockCmdExecURL,
mockCmdOptions,
);
expect(result).toBe(`Error: ${mockError}`);
expect(result).toBe(`${mockError}`);
consoleErrorSpy.mockRestore();
});

Expand Down
2 changes: 1 addition & 1 deletion src/services/webServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let PLAYGROUND_MONO_URL = process.env.NEXT_PUBLIC_PLAYGROUND_MONO_URL;

if (!PLAYGROUND_MONO_URL) {
console.warn(
'Warning: NEXT_PUBLIC_BACKEND_URL is not defined. Defaulting to http://localhost:8080',
'Warning: NEXT_PUBLIC_PLAYGROUND_MONO_URL is not defined. Defaulting to http://localhost:8080',
);
PLAYGROUND_MONO_URL = 'http://localhost:8080';
}
Expand Down

0 comments on commit 83d1deb

Please sign in to comment.