Commit 33c33129 authored by Alf Eaton's avatar Alf Eaton

Fix tests

parent 71e51f1d
......@@ -73,10 +73,10 @@ test('chapter order is preserved', (done) => {
epub.load(html).then(() => {
try {
expect(epub.xhtml[0].id).toEqual('page-1')
expect(epub.xhtml[0].id).toEqual('chapter-1')
expect(epub.xhtml[0].$('h1').text()).toEqual('Chapter 1')
expect(epub.xhtml[1].id).toEqual('page-2')
expect(epub.xhtml[1].id).toEqual('chapter-2')
expect(epub.xhtml[1].$('h1').text()).toEqual('Chapter 2')
done()
} catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment