Skip to content

Commit

Permalink
Remove extraneous html variable from test
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhieb committed Apr 21, 2024
1 parent 51994e4 commit f03bb4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/words.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe(`words`, function() {
I love you
`

const { dom } = await parse(scription)
const { dom } = await parse(scription)
const morphemes = findElementByClass(dom, `glosses`)

expect(getTextContent(morphemes)).to.equal(`1SG.SUBJ‑PRES‑2SG.OBJ‑love‑IND`) // non-breaking hyphens
Expand All @@ -72,7 +72,7 @@ describe(`words`, function() {
\\tln I love you
`

const { dom } = await parse(scription)
const { dom } = await parse(scription)
const [firstGloss, secondGloss] = findElementsByClass(dom, `glosses`)

expect(getTextContent(firstGloss)).to.include(`SUBJ`)
Expand All @@ -90,7 +90,7 @@ describe(`words`, function() {
`

const { dom } = await parse(scription)
const b = findElement(dom, el => getTagName(el) === `b`)
const b = findElement(dom, el => getTagName(el) === `b`)

expect(getTextContent(b)).to.equal(`2SG.OBJ`)

Expand All @@ -106,7 +106,7 @@ describe(`words`, function() {
`

const { dom } = await parse(scription)
const abbr = findElement(dom, el => getTagName(el) === `abbr`)
const abbr = findElement(dom, el => getTagName(el) === `abbr`)

expect(abbr).not.to.exist

Expand All @@ -121,8 +121,8 @@ describe(`words`, function() {
I love you
`

const { dom, html } = await parse(scription, { glosses: true })
const glosses = findElements(dom, el => getTagName(el) === `abbr`)
const { dom } = await parse(scription, { glosses: true })
const glosses = findElements(dom, el => getTagName(el) === `abbr`)
const [person, num] = glosses

expect(glosses).to.have.length(8)
Expand Down

0 comments on commit f03bb4b

Please sign in to comment.