[flutter_tools] update feature defaults (#102937)

This commit is contained in:
Christopher Fujino
2022-05-02 15:14:09 -07:00
committed by GitHub
parent 32fd8e10a2
commit 9d59532a7b
2 changed files with 26 additions and 0 deletions

View File

@@ -364,5 +364,25 @@ void main() {
expect(featureFlags.isWindowsEnabled, true);
});
for (final Feature feature in <Feature>[
flutterWindowsDesktopFeature,
flutterMacOSDesktopFeature,
flutterLinuxDesktopFeature,
]) {
test('${feature.name} available and enabled by default on master', () {
expect(feature.master.enabledByDefault, true);
expect(feature.master.available, true);
});
test('${feature.name} available and enabled by default on beta', () {
expect(feature.beta.enabledByDefault, true);
expect(feature.beta.available, true);
});
test('${feature.name} available and enabled by default on stable', () {
expect(feature.stable.enabledByDefault, true);
expect(feature.stable.available, true);
});
}
});
}