username@email.com
2025-04-27 15eb82df2d6ec539e9d4245bfe08d531e8eb6379
1
2
3
4
5
6
7
8
9
10
11
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.');
  });
});