Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-tymoshenko committed Dec 5, 2023
1 parent 9fdd06f commit c2d5827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/main/prepare-folder.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ test('Install a non-existent template', async () => {
test('Install one @platformatic/service template', async () => {
const appDir = await mkdtemp(join(tmpdir(), 'plat-app-test-create'))
await prepareFolder(appDir, ['@platformatic/service'], logger, 'test-app')
expect(logger.infos[0][0].name).toEqual('@platformatic/service')
expect(logger.infos.at(-1)[0].name).toEqual('@platformatic/service')
expect(logger.errors.length).toBe(0)
}, 30000)

test('Install one @platformatic/service template twice', async () => {
const appDir = await mkdtemp(join(tmpdir(), 'plat-app-test-create'))
await prepareFolder(appDir, ['@platformatic/service'], logger, 'test-app')
expect(logger.infos[0][0].name).toEqual('@platformatic/service')
expect(logger.infos.at(-1)[0].name).toEqual('@platformatic/service')
expect(logger.errors.length).toBe(0)

await prepareFolder(appDir, ['@platformatic/service'], logger, 'test-app')
Expand Down

0 comments on commit c2d5827

Please sign in to comment.