summaryrefslogtreecommitdiffstats
path: root/test/assets-inliner.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/assets-inliner.js')
-rw-r--r--test/assets-inliner.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/assets-inliner.js b/test/assets-inliner.js
new file mode 100644
index 0000000..479d788
--- /dev/null
+++ b/test/assets-inliner.js
@@ -0,0 +1,26 @@
+var mock = require('./mock');
+var AssetsInliner = require('../lib/output/assets-inliner');
+
+describe('Assets Inliner Output', function() {
+
+ describe('SVG', function() {
+ var output;
+
+ before(function() {
+ return mock.outputDefaultBook(AssetsInliner, {
+ 'README.md': '![image](test.svg)',
+ 'test.svg': '<svg width="100" height="100"><circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /></svg>'
+ })
+ .then(function(_output) {
+ output = _output;
+ });
+ });
+
+ it('should correctly convert to PNG', function() {
+ var readme = output.book.getPage('README.md');
+ console.log(readme.content)
+ });
+
+ });
+});
+