UNPKG

manifesto.js

Version:

IIIF Presentation API utility library for client and server

22 lines (17 loc) 627 B
var expect = require('chai').expect; var should = require('chai').should(); var manifesto = require('../../dist-commonjs/'); var manifests = require('../fixtures/manifests'); var manifest, logo; describe('#logo', function() { it('manifest loads successfully', function (done) { manifesto.loadManifest(manifests.logo).then(function(data) { manifest = manifesto.parseManifest(data); done(); }); }); it('has a logo', function () { logo = manifest.getLogo(); expect(logo).to.equal('https://www.bl.uk/images/bl_logo_100.gif'); }); });