From 2cbf52889443913bc1bcba959d2ff983a80f84ff Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 27 Jun 2019 21:18:46 +0200 Subject: [PATCH] fixing failing unit tests in travisCI --- js/privatebin.js | 8 ++++---- js/test/Alert.js | 4 ---- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 9122e835..93ea2489 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -4817,10 +4817,6 @@ jQuery.PrivateBin = (function($, RawDeflate) { // initialize other modules/"classes" Alert.init(); - if (!InitialCheck.init()) { - // something major is wrong, stop right away - return; - } Model.init(); AttachmentViewer.init(); DiscussionViewer.init(); @@ -4831,6 +4827,10 @@ jQuery.PrivateBin = (function($, RawDeflate) { TopNav.init(); UiHelper.init(); z = (await zlib); + if (!InitialCheck.init()) { + // something major is wrong, stop right away + return; + } // check whether existing paste needs to be shown try { diff --git a/js/test/Alert.js b/js/test/Alert.js index 8f79f7e6..dfaf3535 100644 --- a/js/test/Alert.js +++ b/js/test/Alert.js @@ -3,10 +3,6 @@ var common = require('../common'); describe('Alert', function () { describe('showStatus', function () { - before(function () { - cleanup(); - }); - jsc.property( 'shows a status message', jsc.array(common.jscAlnumString()), diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 545fdfb9..711c11ab 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -71,7 +71,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 18e0e2e8..233b6931 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +