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:
parent
858e055b72
commit
9421912880
1 changed files with 3 additions and 8 deletions
|
@ -39,13 +39,8 @@ describe('installer tests', () => {
|
||||||
}, 100000);
|
}, 100000);
|
||||||
|
|
||||||
it('Downloads flutter', async () => {
|
it('Downloads flutter', async () => {
|
||||||
await installer.getFlutter('1.7.8+hotfix.4', 'stable');
|
await installer.getFlutter('1.0.0', 'stable');
|
||||||
const sdkDir = path.join(
|
const sdkDir = path.join(toolDir, 'flutter', '1.0.0-stable', 'x64');
|
||||||
toolDir,
|
|
||||||
'flutter',
|
|
||||||
'1.7.8-hotfix.4-stable',
|
|
||||||
'x64'
|
|
||||||
);
|
|
||||||
|
|
||||||
expect(fs.existsSync(`${sdkDir}.complete`)).toBe(true);
|
expect(fs.existsSync(`${sdkDir}.complete`)).toBe(true);
|
||||||
expect(fs.existsSync(path.join(sdkDir, 'bin'))).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 () => {
|
it('Downloads latest flutter release from stable channel', async () => {
|
||||||
const platform = osName();
|
const platform = osName();
|
||||||
|
|
||||||
nock('https://storage.googleapis.com')
|
nock('https://storage.googleapis.com', {allowUnmocked: true})
|
||||||
.get(`/flutter_infra/releases/releases_${platform}.json`)
|
.get(`/flutter_infra/releases/releases_${platform}.json`)
|
||||||
.replyWithFile(200, path.join(dataDir, `releases_${platform}.json`));
|
.replyWithFile(200, path.join(dataDir, `releases_${platform}.json`));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue