Skip to content

Commit e417c52

Browse files
committed
test: update test files after prettier formatting
1 parent 61a291c commit e417c52

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

src/__tests__/coolify-client.test.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
import { CoolifyClient } from '../lib/coolify-client.js';
2-
import type {
3-
ServerInfo,
4-
ServerResources,
5-
Environment,
6-
CoolifyConfig,
7-
Deployment,
8-
Project,
9-
ResourceStatus,
10-
} from '../types/coolify.js';
2+
import type { ServerInfo, ServerResources, Environment, Deployment } from '../types/coolify.js';
113

124
// Mock fetch globally
135
const mockFetch = jest.fn();
@@ -345,7 +337,7 @@ describe('CoolifyClient', () => {
345337
});
346338

347339
await expect(client.deployApplication('test-app-uuid')).rejects.toThrow(
348-
'Failed to deploy application'
340+
'Failed to deploy application',
349341
);
350342
});
351343
});

src/__tests__/mcp-server.test.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import {
66
Project,
77
Environment,
88
Deployment,
9-
CoolifyConfig,
10-
ResourceStatus,
11-
ServerInfo,
129
} from '../types/coolify.js';
1310

1411
describe('CoolifyMcpServer', () => {
@@ -179,9 +176,7 @@ describe('CoolifyMcpServer', () => {
179176
updated_at: '2024-03-20T12:00:00Z',
180177
};
181178

182-
jest
183-
.spyOn(server['client'], 'deployApplication')
184-
.mockResolvedValue(mockDeployment);
179+
jest.spyOn(server['client'], 'deployApplication').mockResolvedValue(mockDeployment);
185180

186181
const result = await server.deploy_application({ uuid: 'test-app-uuid' });
187182
expect(result).toEqual(mockDeployment);
@@ -193,9 +188,9 @@ describe('CoolifyMcpServer', () => {
193188

194189
jest.spyOn(server['client'], 'deployApplication').mockRejectedValue(error);
195190

196-
await expect(
197-
server.deploy_application({ uuid: 'test-app-uuid' })
198-
).rejects.toThrow('Failed to deploy application');
191+
await expect(server.deploy_application({ uuid: 'test-app-uuid' })).rejects.toThrow(
192+
'Failed to deploy application',
193+
);
199194
});
200195
});
201196
});

0 commit comments

Comments
 (0)