1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00
epub.js/test/epub.js
2015-12-16 21:58:23 -05:00

28 lines
717 B
JavaScript

// var test = require('tape');
var assert = require('assert');
// describe("Create new ePub(/path/to/epub/)", function(t) {
//
// var book = ePub("../books/moby-dick/");
//
// book.opened.then(function(){
// assert.equal( book.url, "../books/moby-dick/OPS/", "book url is passed to new EPUBJS.Book" );
// });
//
// });
describe('ePub', function() {
var ePub = require('../src/epub');
describe('#ePub()', function() {
xit('should save without error', function(done) {
var book = ePub("../books/moby-dick/");
book.opened.then(function(){
assert.equal( book.url, "../books/moby-dick/OPS/", "book url is passed to new EPUBJS.Book" );
done();
});
});
});
});