MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / createTestFile

Function createTestFile

src/test/ace.test.js:16–24  ·  view source on GitHub ↗
(text = "")

Source from the content-addressed store, hash-verified

14 }
15
16 async function createTestFile(text = "") {
17 const EditorFile = acode.require("editorFile");
18 const file = new EditorFile("__ace_test__.txt", {
19 text,
20 render: true,
21 });
22 await new Promise((r) => setTimeout(r, 100));
23 return file;
24 }
25
26 runner.test("editorManager.editor exists", (test) => {
27 test.assert(

Callers 1

runAceCompatibilityTestsFunction · 0.85

Calls 1

requireMethod · 0.80

Tested by

no test coverage detected