From 82b904ef82bd99f4d81a382f11e82ee435e4a39c Mon Sep 17 00:00:00 2001 From: "C. Fuhrman" Date: Sat, 25 Jan 2025 02:07:38 -0500 Subject: [PATCH] Some template (snapshot) tests reveal trouble --- .../components/GiftTemplate/templates/TrueFalse.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/__tests__/components/GiftTemplate/templates/TrueFalse.test.tsx b/client/src/__tests__/components/GiftTemplate/templates/TrueFalse.test.tsx index 8804c4d..f009607 100644 --- a/client/src/__tests__/components/GiftTemplate/templates/TrueFalse.test.tsx +++ b/client/src/__tests__/components/GiftTemplate/templates/TrueFalse.test.tsx @@ -14,7 +14,7 @@ const plainTextMock: TemplateOptions & TrueFalseQuestion = parse(`::Sample True/False Title::Sample Stem {T#Correct!#Incorrect!####Sample Global Feedback}`)[0] as TrueFalseQuestion; const katexMock: TemplateOptions & TrueFalseQuestion = - parse(`::Sample True/False Title::$$\\frac{zzz}{yyy}$$ {T#Correct!#Incorrect!####Sample Global Feedback}`)[0] as TrueFalseQuestion; + parse(`::Sample True/False Title::$$\\frac\\{zzz\\}\\{yyy\\}$$ {T#Correct!#Incorrect!####Sample Global Feedback}`)[0] as TrueFalseQuestion; const moodleMock: TemplateOptions & TrueFalseQuestion = parse(`::Sample True/False Title::[moodle]Sample Stem{TRUE#Correct!#Incorrect!####Sample Global Feedback}`)[0] as TrueFalseQuestion; @@ -22,7 +22,7 @@ const moodleMock: TemplateOptions & TrueFalseQuestion = const imageMock: TemplateOptions & ShortAnswerQuestion = parse(`::Sample Short Answer Title with Image:: [markdown]Sample Stem with Image ![](https\\://example.com/cat.gif) - {=A =B =C####[html]Sample Image}`)[0] as ShortAnswerQuestion; + {=A =B =C####[html]}`)[0] as ShortAnswerQuestion; test('TrueFalse snapshot test with plain text', () => { const { asFragment } = render();