mirror of
https://github.com/fengyuanchen/viewerjs.git
synced 2025-12-08 19:56:00 +00:00
12 lines
328 B
JavaScript
12 lines
328 B
JavaScript
describe('Viewer', () => {
|
|
it('should be a class (function)', () => {
|
|
expect(Viewer).to.be.a('function');
|
|
});
|
|
|
|
it('should throw error when the first argument is not an element', () => {
|
|
expect(() => {
|
|
new Viewer(document);
|
|
}).to.throw('The first argument is required and must be an element.');
|
|
});
|
|
});
|