+describe("Init jasmine config", function () {
+ it("jasmine was successfully initialized", function () {
+ init_jasmine_config();
+
+ expect(jasmine_config.search_query).toMatch(/\w/);
+ expect(jasmine_config.second).toBeGreaterThan(100);
+ expect(jasmine_config.max_time).toBeGreaterThan(1);
+ expect(jasmine_config.expected_hits).toBeGreaterThan(1);
+ });
+});
+
+//disabled
+xdescribe("Check MOTD before search", function () {
+ // Check that the MOTD has been moved into its container, and
+ // is visible before the search.
+ // the mkwsMOTD div was originally inside a testMOTD div, which should
+ // now be empty
+ // Note that the testMOTD is a regular div, and uses #testMOTD,
+ // since the automagic class-making does not apply to it.
+ it("MOTD is hidden", function () {
+ expect(mkws.$(".mkwsMOTD").length).toBe(1);
+ expect(mkws.$("#testMOTD").length).toBe(1);
+ expect(mkws.$("#testMOTD").text()).toMatch("^ *$");
+ });
+
+ it("mkwsMOTDContainer has received the text", function () {
+ expect(mkws.$(".mkwsMOTDContainer").length).toBe(1);
+ expect(mkws.$(".mkwsMOTDContainer").text()).toMatch(/MOTD/);
+ });
+});
+