LR-20210131IOQH\Administrator
2021-06-25 ac4f98f9d24552d1c43935f20a969a2fda0723f0
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.');
  });
});