From: Wolfram Schneider Date: Mon, 1 Dec 2014 15:13:31 +0000 (+0000) Subject: Check for external JavaScript libs, part of MKWS-341 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=948c00ce0f5621e9fda178f24e053b4a608b5561;p=mkws-moved-to-github.git Check for external JavaScript libs, part of MKWS-341 --- diff --git a/test/spec/mkws-config.js b/test/spec/mkws-config.js index 980b262..c1963d2 100644 --- a/test/spec/mkws-config.js +++ b/test/spec/mkws-config.js @@ -4,6 +4,27 @@ * */ +describe("Check for external JavaScript libs", function () { + it("JSNlog", function () { + expect(typeof JL).not.toBe('undefined'); + }); + + it("Handlebars", function () { + expect(typeof Handlebars).not.toBe('undefined'); + }); + + it("jQuery", function () { + expect(typeof mkws.$).not.toBe('undefined'); + }); + + xit("jQuery UI", function () { + // if we have a popup widget, check for the jQuery UI lib + if ($(".popup").length > 0) { + expect(typeof mkws.$.ui).not.toBe('undefined'); + } + }); +}); + describe("Check mkws.config object", function () { it("mkws.config exists", function () { expect(mkws.config).not.toBe(undefined);