mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
improve TopNav.getExpiration test
This commit is contained in:
parent
2c8b5ed0e4
commit
81ad352c8c
@ -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 New Issue
Block a user