From 70afbe7e1c2fc19f85c6249635bde1fa3a013f05 Mon Sep 17 00:00:00 2001 From: Bach Bui Date: Wed, 13 Nov 2024 16:38:34 -0500 Subject: [PATCH] chore: remove tests in renderer-hir --- .../renderer-hir/test/renderer-hir.test.ts | 62 ------------------- 1 file changed, 62 deletions(-) diff --git a/packages/@atjson/renderer-hir/test/renderer-hir.test.ts b/packages/@atjson/renderer-hir/test/renderer-hir.test.ts index d04ff658b..c73256816 100644 --- a/packages/@atjson/renderer-hir/test/renderer-hir.test.ts +++ b/packages/@atjson/renderer-hir/test/renderer-hir.test.ts @@ -468,67 +468,5 @@ describe("@atjson/renderer-hir", () => { "This document has a spoiler:\nXXXXXXXXXX" ); }); - - test("nested slices and subsequent marks", () => { - let atjson = new TestSource({ - content: "Pre-text\n\nParent Slice\n\nChild Slice\n\nPost-text", - annotations: [ - new Italic({ start: 0, end: 3 }), - new SliceAnnotation({ id: "slice1", start: 10, end: 37 }), - new SliceAnnotation({ id: "slide2", start: 24, end: 30 }), - new Bold({ start: 37, end: 41 }), - ], - }); - - class ConcreteRenderer extends Renderer { - *Bold() { - let text = (yield).join(""); - return `__${text}__`; - } - *Italic() { - let text = (yield).join(""); - return `*${text}*`; - } - *root() { - let results = (yield).join(""); - return results; - } - } - - expect(ConcreteRenderer.render(atjson)).toEqual( - "*Pre*-text\n\n__Post__-text" - ); - }); - - test("overlapping slices and subsequent marks", () => { - let atjson = new TestSource({ - content: "Pre-text\n\nParent Slice\n\nChild Slice\n\nPost-text", - annotations: [ - new Italic({ start: 0, end: 3 }), - new SliceAnnotation({ id: "slice1", start: 10, end: 30 }), - new SliceAnnotation({ id: "slide2", start: 24, end: 37 }), - new Bold({ start: 37, end: 41 }), - ], - }); - - class ConcreteRenderer extends Renderer { - *Bold() { - let text = (yield).join(""); - return `__${text}__`; - } - *Italic() { - let text = (yield).join(""); - return `*${text}*`; - } - *root() { - let results = (yield).join(""); - return results; - } - } - - expect(ConcreteRenderer.render(atjson)).toEqual( - "*Pre*-text\n\n__Post__-text" - ); - }); }); });