From 7e5d21ffbe6421fb5e5ce9410e22125afac620ea Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Wed, 16 Nov 2022 10:25:14 +0800 Subject: [PATCH] Fix typo --- tests/epubcfi-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/epubcfi-tests.js b/tests/epubcfi-tests.js index ec91e4b..7b79307 100644 --- a/tests/epubcfi-tests.js +++ b/tests/epubcfi-tests.js @@ -112,7 +112,7 @@ const XHTML = str => parser.parseFromString(str, 'application/xhtml+xml') const cfi = `/4/10,/3:${i},/3:${i+1}` const range = CFI.toRange(page, CFI.parse(cfi)) const n = `${i}` - console.assert(range.toString() === n, `expted ${n}, got ${range}`) + console.assert(range.toString() === n, `expected ${n}, got ${range}`) } } test(page) @@ -176,7 +176,7 @@ const XHTML = str => parser.parseFromString(str, 'application/xhtml+xml') const cfi = `/4[body0^]!/1^^]/10[para^]/0^,^/5],/3:${i},/3:${i+1}` const range = CFI.toRange(page, CFI.parse(cfi)) const n = `${i}` - console.assert(range.toString() === n, `expted ${n}, got ${range}`) + console.assert(range.toString() === n, `expected ${n}, got ${range}`) } }