From 84df14d9da5ab0cd3e991e623ec420549bdecef7 Mon Sep 17 00:00:00 2001
From: Alexandros Georgantas <alexgeorg86@gmail.com>
Date: Fri, 17 Nov 2017 21:13:19 +0200
Subject: [PATCH] Correction pon fragment  mock

---
 packages/Epub/converters/wax.js | 4 ++--
 packages/Epub/process.test.js   | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/packages/Epub/converters/wax.js b/packages/Epub/converters/wax.js
index 79fe265..7d52bfa 100644
--- a/packages/Epub/converters/wax.js
+++ b/packages/Epub/converters/wax.js
@@ -1,8 +1,8 @@
 module.exports = ($, fragmentTitle, bookTitle, fragmentDivision) => {
   const body = $('body')
 
-  const outerContainer = $('<div/>').attr('class', fragmentDivision)
-  const innerContainer = $('<section/>').attr('data-type', 'chapter')
+  let outerContainer = $('<div/>').attr('class', fragmentDivision)
+  let innerContainer = $('<section/>').attr('data-type', 'chapter')
   $('<p/>').attr('class', 'ch-start').html('beginning').appendTo(innerContainer)
   $('<div/>').attr('class', 'folio').appendTo(innerContainer)
   $('<div/>').attr('class', 'booktitle').html(bookTitle).appendTo(innerContainer)
diff --git a/packages/Epub/process.test.js b/packages/Epub/process.test.js
index ee8e0a6..e3cef91 100644
--- a/packages/Epub/process.test.js
+++ b/packages/Epub/process.test.js
@@ -5,6 +5,7 @@ const processFragment = require('./process')
 test('converts source to html', () => {
   const fragment = {
     title: 'A Test',
+    division: 'body',
     source: `
       <div>
           <h1>A Test</h1>
-- 
GitLab