Add support for API 15-19 system images.

This commit is contained in:
Yang Chen
2020-03-05 14:43:58 +11:00
committed by Yang
parent 4a949058e2
commit ede514c8c2
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -17,14 +17,14 @@ describe('api-level validator tests', () => {
it('Throws if api-level is lower than min API supported', () => {
const func = () => {
validator.checkApiLevel('20');
validator.checkApiLevel('14');
};
expect(func).toThrowError(`Minimum API level supported is ${validator.MIN_API_LEVEL}.`);
});
it('Validates successfully with valid api-level', () => {
const func1 = () => {
validator.checkApiLevel('21');
validator.checkApiLevel('15');
};
expect(func1).not.toThrow();