mirror of
https://github.com/appium/appium.git
synced 2026-10-28 20:31:51 +08:00
* Rename 'mjsonwp' to 'protocol' * Renamed folder from 'mjsonwp' to 'protocol' in `lib/` and `test/` * Renamed 'mjsonwp.js' to 'protocol.js' * Renamed any import statements that use 'mjsonwp' * _Possible breaking change_: MJSONWireProtocol class exposed in index was renamed to just Protocol.... checked Appium repo and found no libraries that use MJSONWireProtocol * Lint fix
14 lines
271 B
JavaScript
14 lines
271 B
JavaScript
import { errors } from '../protocol';
|
|
|
|
|
|
function produceError () {
|
|
throw new errors.UnknownCommandError('Produced generic error for testing');
|
|
}
|
|
|
|
function produceCrash () {
|
|
throw new Error('We just tried to crash Appium!');
|
|
}
|
|
|
|
|
|
export { produceError, produceCrash };
|