UNPKG

manifesto.js

Version:

IIIF Presentation API utility library for client and server

26 lines (22 loc) 789 B
var expect = require('chai').expect; var should = require('chai').should(); var manifesto = require('../../dist-commonjs/'); var manifests = require('../fixtures/manifests'); var manifest, topRange; describe('#loadsRemembranceRanges', function() { it('loads successfully', function (done) { manifesto.loadManifest(manifests.bookofremembrance).then(function(data) { manifest = manifesto.parseManifest(data); done(); }); }); it('has a tree', function () { var tree = manifest.getDefaultTree(); expect(tree).to.exist; }); it('has a top range', function () { topRanges = manifest.getTopRanges(); topRanges.length.should.equal(1); //topRanges[0].members.length.should.equal(10); }); });