Skip to content

Commit

Permalink
tests for unordered and ordered lists start attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
RachelDau committed Jan 25, 2023
2 parents f91fa42 + 63e28c3 commit 30c8759
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/obonode/obojobo-chunks-list/list-styles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,21 @@ describe('List Styles', () => {
expect(ls).not.toBe(other)
expect(ls.toDescriptor()).toEqual(other.toDescriptor())
})
test('all unordered lists dont have a start attribute', () => {
const ls = new ListStyles()
ls.init()
if (ls.type === 'unordered') {
expect(ls.type).toBe('unordered')
expect(ls.start).toBe(undefined)
}
})

test('all ordered lists do have a start attribute', () => {
const ls = new ListStyles('ordered')
ls.init()
if (ls.type === 'ordered') {
expect(ls.type).toBe('ordered')
expect(ls.start).toBe(true)
}
})
})

0 comments on commit 30c8759

Please sign in to comment.