mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
added test for invalid version
This commit is contained in:
parent
9b82c25a31
commit
88fdaa7568
1 changed files with 10 additions and 0 deletions
|
@ -45,4 +45,14 @@ describe('installer tests', () => {
|
||||||
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);
|
||||||
}, 100000);
|
}, 100000);
|
||||||
|
|
||||||
|
it('Throws if no location contains correct flutter version', async () => {
|
||||||
|
let thrown = false;
|
||||||
|
try {
|
||||||
|
await installer.getFlutter('1000.0', 'dev');
|
||||||
|
} catch {
|
||||||
|
thrown = true;
|
||||||
|
}
|
||||||
|
expect(thrown).toBe(true);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue