improve TopNav.getExpiration test
This commit is contained in:
parent
2c8b5ed0e4
commit
81ad352c8c
1 changed files with 7 additions and 1 deletions
|
@ -456,8 +456,14 @@ describe('TopNav', function () {
|
||||||
it(
|
it(
|
||||||
'returns the currently selected expiration date',
|
'returns the currently selected expiration date',
|
||||||
function () {
|
function () {
|
||||||
|
$('body').html(
|
||||||
|
'<select id="pasteExpiration" name="pasteExpiration">' +
|
||||||
|
'<option value="1day">1 day</option>' +
|
||||||
|
'<option value="never">Never</option></select>'
|
||||||
|
);
|
||||||
$.PrivateBin.TopNav.init();
|
$.PrivateBin.TopNav.init();
|
||||||
assert.ok($.PrivateBin.TopNav.getExpiration() === null);
|
assert.ok($.PrivateBin.TopNav.getExpiration() === '1day');
|
||||||
|
cleanup();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue