Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
15
scratch-vm/test/fixtures/dispatch-test-service.js
vendored
Normal file
15
scratch-vm/test/fixtures/dispatch-test-service.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
class DispatchTestService {
|
||||
returnFortyTwo () {
|
||||
return 42;
|
||||
}
|
||||
|
||||
doubleArgument (x) {
|
||||
return 2 * x;
|
||||
}
|
||||
|
||||
throwException () {
|
||||
throw new Error('This is a test exception thrown by DispatchTest');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DispatchTestService;
|
||||
Reference in New Issue
Block a user