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

updated test assertion

This commit is contained in:
Alif Rachmawadi 2019-08-13 18:23:00 +07:00
parent ae2427424b
commit 04c5d0bc50
No known key found for this signature in database
GPG key ID: 79DA63C0F3A55BB1

View file

@ -27,7 +27,7 @@ describe('installer tests', () => {
it('Downloads flutter', async () => {
await installer.getFlutter('v1.7.8+hotfix.4', 'stable');
const sdkDir = path.join(toolDir, 'Flutter', 'v1.7.8+hotfix.4-stable');
const sdkDir = path.join(toolDir, 'Flutter', '1.7.8', 'x64');
expect(fs.existsSync(`${sdkDir}.complete`)).toBe(true);
expect(fs.existsSync(path.join(sdkDir, 'bin'))).toBe(true);
@ -35,7 +35,7 @@ describe('installer tests', () => {
it('Downloads flutter from beta channel', async () => {
await installer.getFlutter('v1.8.3', 'beta');
const sdkDir = path.join(toolDir, 'Flutter', 'v1.8.3-beta');
const sdkDir = path.join(toolDir, 'Flutter', '1.8.3', 'x64');
expect(fs.existsSync(`${sdkDir}.complete`)).toBe(true);
expect(fs.existsSync(path.join(sdkDir, 'bin'))).toBe(true);