1
0
Fork 0
mirror of https://github.com/subosito/flutter-action.git synced 2024-08-16 10:19:50 +02:00

allow unmocked

This commit is contained in:
Alif Rachmawadi 2019-08-16 18:40:47 +07:00
parent 858e055b72
commit 9421912880
No known key found for this signature in database
GPG key ID: 79DA63C0F3A55BB1

View file

@ -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`));