From 81ad352c8c936c17e30ef34b05ce88cf9a634c14 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 9 May 2024 16:11:15 +0200 Subject: [PATCH] improve TopNav.getExpiration test --- js/test/TopNav.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/test/TopNav.js b/js/test/TopNav.js index 2743bf60..d5571888 100644 --- a/js/test/TopNav.js +++ b/js/test/TopNav.js @@ -456,8 +456,14 @@ describe('TopNav', function () { it( 'returns the currently selected expiration date', function () { + $('body').html( + '' + ); $.PrivateBin.TopNav.init(); - assert.ok($.PrivateBin.TopNav.getExpiration() === null); + assert.ok($.PrivateBin.TopNav.getExpiration() === '1day'); + cleanup(); } ); });