Skip to content

Commit

Permalink
tests to increase code coverage
Browse files Browse the repository at this point in the history
_onSelectedTransitionEnd test
_normalizeValue test


normalizeValue test

attrForSelected null
  • Loading branch information
programmer4web committed May 15, 2018
1 parent 5d0fe06 commit 7322d69
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,22 @@
assert.isFalse(tabs.resizerShouldBeNotified(tabs.items[2]));
done();
});

test('_onSelectedTransitionEnd sets animating false', done => {
const selected = tabs.selectedItem;
selected.animating = true;
selected._onSelectedTransitionEnd();
assert.isFalse(selected.animating);
done();
});

test('_normalizeValue handles null', done => {
tabs.attrForSelected = null;
assert.isUndefined(tabs._normalizeValue());
assert.isNull(tabs._normalizeValue(null));
done();
});

});

suite('basic', function () {
Expand Down

0 comments on commit 7322d69

Please sign in to comment.