Skip to content

Commit

Permalink
Add test for page title with nested text
Browse files Browse the repository at this point in the history
I could not find an existing test for this
  • Loading branch information
TylerZeroMaster committed Jun 25, 2024
1 parent cce4d27 commit 85edf95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/model/page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ describe('Page', () => {
expect(() => { page.load(pageMaker({ uuid: 'little bobby drop tables</md:uuid><md:uuid>injection is fun' })) })
.toThrow("Expected one but found 2 results that match '//md:uuid'")
})
it('loads title correctly', () => {
expect(page.isLoaded).toBe(false)
page.load(pageMaker({ title: 'Some <emphasis>text</emphasis>' }))
expect(page.title).toBe('Some text')
})
})

describe('Page validations', () => {
Expand Down

0 comments on commit 85edf95

Please sign in to comment.