node_tests: Add remaining tests for panels.js.

In this commit, we add the node tests for `panels.js`, which started
in 2f36c5aefc commit (it added tests for
the server upgrade alert).
This commit is contained in:
Riken Shah
2021-05-07 09:45:19 +00:00
committed by Tim Abbott
parent 8df82f50e4
commit 089ca2bdcf
2 changed files with 59 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ const get_step = function ($process) {
return $process.find("[data-step]:visible").data("step");
};
function should_show_notifications(ls) {
export function should_show_notifications(ls) {
// if the user said to never show banner on this computer again, it will
// be stored as `true` so we want to negate that.
if (localstorage.supported() && ls.get("dontAskForNotifications") === true) {