mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
Add support for pinning specific emulator build.
This commit is contained in:
@@ -97,3 +97,26 @@ describe('disable-animations validator tests', () => {
|
||||
expect(func2).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe('emulator-build validator tests', () => {
|
||||
it('Throws if emulator-build is not a number', () => {
|
||||
const func = () => {
|
||||
validator.checkEmulatorBuild('abc123');
|
||||
};
|
||||
expect(func).toThrowError(`Unexpected emulator build: 'abc123'.`);
|
||||
});
|
||||
|
||||
it('Throws if emulator-build is not an integer', () => {
|
||||
const func = () => {
|
||||
validator.checkEmulatorBuild('123.123');
|
||||
};
|
||||
expect(func).toThrowError(`Unexpected emulator build: '123.123'.`);
|
||||
});
|
||||
|
||||
it('Validates successfully with valid emulator-build', () => {
|
||||
const func = () => {
|
||||
validator.checkEmulatorBuild('6061023');
|
||||
};
|
||||
expect(func).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user