From 948c00ce0f5621e9fda178f24e053b4a608b5561 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 1 Dec 2014 15:13:31 +0000 Subject: [PATCH] Check for external JavaScript libs, part of MKWS-341 --- test/spec/mkws-config.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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); -- 1.7.10.4