From 4c5491186a7b7928bab87ae85ef59e73881fbcdd Mon Sep 17 00:00:00 2001 From: Greg Walker Date: Thu, 21 Nov 2024 13:06:51 -0600 Subject: [PATCH] note why the string is funky --- src/scripts/define.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/define.test.js b/src/scripts/define.test.js index 95ff9ac..243a3da 100644 --- a/src/scripts/define.test.js +++ b/src/scripts/define.test.js @@ -228,6 +228,9 @@ describe("glossary", () => { const fetcher = cache.mock.calls[0].pop(); fetch.mockResolvedValue({ + // The data being pulled across the network is expected to be YAML, so + // we need to be sure we format it correctly here. Hence the funky-looking + // string. text: async () => ` entries: term 1: ATO