mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
Add emulator-launcher.
This commit is contained in:
@@ -97,3 +97,24 @@ describe('headless validator tests', () => {
|
||||
expect(func2).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe('disable-animations validator tests', () => {
|
||||
it('Throws if disable-animations is not a boolean', () => {
|
||||
const func = () => {
|
||||
validator.checkDisableAnimations('yes');
|
||||
};
|
||||
expect(func).toThrowError(`Input for input.disable-animations should be either 'true' or 'false'.`);
|
||||
});
|
||||
|
||||
it('Validates successfully if disable-animations is either true or false', () => {
|
||||
const func1 = () => {
|
||||
validator.checkDisableAnimations('true');
|
||||
};
|
||||
expect(func1).not.toThrow();
|
||||
|
||||
const func2 = () => {
|
||||
validator.checkDisableAnimations('false');
|
||||
};
|
||||
expect(func2).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user