MemoryLeakTest.js 331 B

123456
  1. // this file is called MemoryLeakTest.js (not MemoryLeak.spec.js) to make sure it is manually executed as the last suite
  2. describe('MemoryLeakTest', () => {
  3. it('after all Handsontable instances are destroy()\'d, there should be no more active listeners', () => {
  4. expect(Handsontable._getListenersCounter()).toBe(0);
  5. });
  6. });