Skip to content

Commit

Permalink
lint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nichlaes committed Nov 28, 2024
1 parent 488cd84 commit 66f8919
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions servers/lib/test/cloudcmd/cloudcmd.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('cloudcmd test for the application', () => {
config();

await writeFile(`${process.env.LOCAL_PATH}/test.txt`, 'content12345');
// eslint-disable-next-line no-promise-executor-return
await new Promise((resolve) => setTimeout(resolve, 50000)); // This is problematic.
}, 55000);

Expand All @@ -30,7 +30,7 @@ describe('cloudcmd test for the application', () => {
expect(fileNames).toContain('user2');
}, 10000);

it('should return the content of a file that is uplaoded to cloudcmd ', async () => {
it('should return the content of a file that is uplaoded to cloudcmd', async () => {
const response = await axios.get(
`http://localhost:${process.env.PORT}${process.env.APOLLO_PATH}/files/api/v1/fs/test.txt`,
);
Expand Down
2 changes: 1 addition & 1 deletion servers/lib/test/e2e/app.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('End to End test for the application', () => {
await app.listen(process.env.PORT);

// Check if the port is available
// eslint-disable-next-line no-promise-executor-return
while (!app.getHttpServer().listening) {
await new Promise((resolve) => setTimeout(resolve, 100));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ describe('Integration tests for FilesResolver', () => {

const modes = ['local'];

// eslint-disable-next-line no-restricted-syntax
for (const mode of modes) {
// eslint-disable-next-line no-loop-func
describe(`when MODE is ${mode}`, () => {
beforeEach(() => {
jest.spyOn(mockConfigService, 'getMode').mockImplementation(() => mode);
Expand Down
2 changes: 1 addition & 1 deletion servers/lib/test/testUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function sleep(ms) {
}

export class MockConfigService {
// eslint-disable-next-line class-methods-use-this

getMode(): string {
return '';
Expand Down
2 changes: 1 addition & 1 deletion servers/lib/test/unit/git-files.service.unit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ describe('GitFilesService', () => {
await service.readFile('/some/path/file.txt');

// Assert
expect(mockReadFile).toBeCalledTimes(1);
expect(mockReadFile).toHaveBeenCalledTimes(1);
});
});

0 comments on commit 66f8919

Please sign in to comment.