From c2d5827c19883b9b1e145c06fd10c11035aa6439 Mon Sep 17 00:00:00 2001 From: Ivan Tymoshenko Date: Tue, 5 Dec 2023 14:01:18 +0100 Subject: [PATCH] fix tests --- test/main/prepare-folder.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/main/prepare-folder.test.mjs b/test/main/prepare-folder.test.mjs index c556b43b..29ee0f28 100644 --- a/test/main/prepare-folder.test.mjs +++ b/test/main/prepare-folder.test.mjs @@ -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')