UNPKG

manifesto.js

Version:

IIIF Presentation API utility library for client and server

24 lines (18 loc) 682 B
var expect = require('chai').expect; var should = require('chai').should(); var manifesto = require('../../dist-commonjs/'); var manifests = require('../fixtures/manifests'); var collection, manifests; describe('presentation 3 collection', function() { it('loads successfully', function(done) { manifesto.loadManifest(manifests.pres3collection3).then(function(data) { collection = manifesto.parseManifest(data); done(); }); }); it('has manifests', function() { manifests = collection.getManifests(); expect(manifests).to.exist; expect(manifests.length).to.equal(3); }); });