@@ -37,7 +37,7 @@ global.document = {
3737 createElement : jest . fn ( ) . mockImplementation ( createMockElement ) ,
3838 head : { appendChild : jest . fn ( ) } ,
3939 body : { appendChild : jest . fn ( ) } ,
40- querySelector : jest . fn ( ) ,
40+ querySelector : jest . fn ( )
4141} ;
4242
4343global . window = {
@@ -55,7 +55,7 @@ const mockWidgetWindow = {
5555 onmaximize : null ,
5656 clear : jest . fn ( ) ,
5757 show : jest . fn ( ) ,
58- setPosition : jest . fn ( ) ,
58+ setPosition : jest . fn ( )
5959} ;
6060
6161global . window . widgetWindows = {
@@ -66,13 +66,13 @@ global.docById.mockReturnValue({ height: 500, style: {}, innerText: "", innerHTM
6666const JSEditor = require ( "../jseditor.js" ) ; // Assuming jseditor.js exports the class or sets global. No, it sets window.jsEditor usually?
6767// Actually jseditor.js content shows "class JSEditor ..." but doesn't show "module.exports".
6868// It ends with: "window.jsEditor = this;" inside constructor? No, inside _setup.
69- // And it seems to rely on being loaded as a script.
69+ // And it seems to rely on being loaded as a script.
7070// If it's not a module, simple requiring it might not return the class if it doesn't assign to module.exports.
7171// However, the file content shows "class JSEditor". If it is not exported, we can't import it in Node test.
72- // We might need to eval it or rely on it setting a global if we require it.
72+ // We might need to eval it or rely on it setting a global if we require it.
7373// Let's assume standard behavior for this codebase. PitchSlider uses `require("../pitchslider.js")`.
7474// This implies `pitchslider.js` has `module.exports`.
75- // I'll assume `jseditor.js` also has `module.exports = JSEditor;` at the end (not shown in my view_file output).
75+ // I'll assume `jseditor.js` also has `module.exports = JSEditor;` at the end (not shown in my view_file output).
7676// Let's verify that.
7777
7878describe ( "JSEditor Highlight Compatibility" , ( ) => {
0 commit comments