mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
28 lines
717 B
JavaScript
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();
|
|
});
|
|
});
|
|
});
|
|
});
|