From 94219128805ac63c48cfbdc47e204d8247495813 Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Fri, 16 Aug 2019 18:40:47 +0700 Subject: [PATCH] allow unmocked --- __tests__/installer.test.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index ad93ea8..5e133c4 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -39,13 +39,8 @@ describe('installer tests', () => { }, 100000); it('Downloads flutter', async () => { - await installer.getFlutter('1.7.8+hotfix.4', 'stable'); - const sdkDir = path.join( - toolDir, - 'flutter', - '1.7.8-hotfix.4-stable', - 'x64' - ); + await installer.getFlutter('1.0.0', 'stable'); + const sdkDir = path.join(toolDir, 'flutter', '1.0.0-stable', 'x64'); expect(fs.existsSync(`${sdkDir}.complete`)).toBe(true); expect(fs.existsSync(path.join(sdkDir, 'bin'))).toBe(true); @@ -54,7 +49,7 @@ describe('installer tests', () => { it('Downloads latest flutter release from stable channel', async () => { const platform = osName(); - nock('https://storage.googleapis.com') + nock('https://storage.googleapis.com', {allowUnmocked: true}) .get(`/flutter_infra/releases/releases_${platform}.json`) .replyWithFile(200, path.join(dataDir, `releases_${platform}.json`));