scratch-vm/test/fixtures/dispatch-test-service.js

16 lines
279 B
JavaScript
Raw Normal View History

class DispatchTestService {
returnFortyTwo () {
return 42;
}
doubleArgument (x) {
return 2 * x;
}
throwException () {
2017-07-16 03:14:03 -04:00
throw new Error('This is a test exception thrown by DispatchTest');
}
}
module.exports = DispatchTestService;