mirror of
https://github.com/subosito/flutter-action.git
synced 2026-10-31 16:51:01 +00:00
added test for invalid version
This commit is contained in:
1 file changed
+10
@@ -45,4 +45,14 @@ describe('installer tests', () => {
|
||||
expect(fs.existsSync(`${sdkDir}.complete`)).toBe(true);
|
||||
expect(fs.existsSync(path.join(sdkDir, 'bin'))).toBe(true);
|
||||
}, 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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user