-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from boostcampwm2023/feature-be-#147
[BE] feat#147 4๋ฒ ๋ฌธ์ ์ฑ์ ๋ก์ง ๋ฐ ํ ์คํธ ์ฝ๋
- Loading branch information
Showing
5 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,6 @@ | |
], | ||
"coverageDirectory": "../coverage", | ||
"testEnvironment": "node", | ||
"testTimeout": 10000 | ||
"testTimeout": 20000 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { getTreeHead } from './test.module'; | ||
|
||
const containerId = process.argv[3]; | ||
|
||
describe('QuizWizardService', () => { | ||
it('should be true', async () => { | ||
expect(await getTreeHead(containerId, 'main')).toMatch( | ||
'2c347f65f96ed5817553d668c062f8bec792131d', | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { executeSSHCommand } from '../../common/ssh.util'; | ||
import { DOCKER_TEMPLATE, setupTestingModule } from './quiz-wizard.test.setup'; | ||
import { QuizWizardService } from '../quiz-wizard.service'; | ||
|
||
describe('4๋ฒ ๋ฌธ์ ์ฑ์ ํ ์คํธ', () => { | ||
let service: QuizWizardService, containerId: string; | ||
|
||
beforeEach(async () => { | ||
({ service, containerId } = await setupTestingModule(4)); | ||
}); | ||
|
||
afterEach(async () => { | ||
await executeSSHCommand(`docker rm -f ${containerId}`); | ||
}); | ||
|
||
it('๋ฒ ์คํธ ์ ๋ต ์ผ์ด์ค', async () => { | ||
await executeSSHCommand( | ||
`${DOCKER_TEMPLATE} ${containerId} git commit -m "test commit"`, | ||
); | ||
|
||
expect(await service.submit(containerId, 4)).toBe(true); | ||
}); | ||
|
||
it('์ ๋ถ ๋ค commitํ ์ผ์ด์ค', async () => { | ||
await executeSSHCommand( | ||
`${DOCKER_TEMPLATE} ${containerId} git add .`, | ||
`${DOCKER_TEMPLATE} ${containerId} git commit -m "test commit"`, | ||
); | ||
|
||
expect(await service.submit(containerId, 4)).toBe(false); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters