LR-20210131IOQH\Administrator
2021-06-25 ac4f98f9d24552d1c43935f20a969a2fda0723f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
describe('noConflict', () => {
  it('should be a static method', () => {
    expect(Viewer.noConflict).to.be.a('function');
  });
 
  it('should return the Viewer class itself', () => {
    const { Viewer } = window;
    const ImageViewer = Viewer.noConflict();
 
    expect(ImageViewer).to.equal(Viewer);
    expect(window.Viewer).to.be.undefined;
 
    // Reverts it for the rest test suites
    window.Viewer = ImageViewer;
  });
});