Browse Source

Adds sanity check assertions to popup destroy tests

mbroad/unittest/lib/shared
MacLeod Broad 7 years ago
parent
commit
830348787e
No known key found for this signature in database GPG Key ID: F1B295D13C3CC9CF
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      test/Popup.test.js

+ 2
- 0
test/Popup.test.js View File

@ -136,7 +136,9 @@ describe('Popup', function () {
describe('destroy', function () { describe('destroy', function () {
it('removes frame from container', function () { it('removes frame from container', function () {
assert.equal(this.container.children.length, 0);
var popup = new Popup(this.container); var popup = new Popup(this.container);
assert.equal(this.container.children.length, 1);
popup.destroy(); popup.destroy();
assert.equal(this.container.children.length, 0); assert.equal(this.container.children.length, 0);
}); });

Loading…
Cancel
Save