diff --git a/libraries/overleaf-editor-core/test/text_operation.test.js b/libraries/overleaf-editor-core/test/text_operation.test.js index 123be32f4c..7985a8f77b 100644 --- a/libraries/overleaf-editor-core/test/text_operation.test.js +++ b/libraries/overleaf-editor-core/test/text_operation.test.js @@ -1,3 +1,4 @@ +// @ts-check // // These tests are based on the OT.js tests: // https://github.com/Operational-Transformation/ot.js/blob/ @@ -123,7 +124,7 @@ describe('TextOperation', function () { const ops2 = ops.slice(0) fn(ops2) expect(() => { - TextOperation.fromJSON({ textOperations: ops2 }) + TextOperation.fromJSON({ textOperation: ops2 }) }).to.throw }