From 9d3d2a71f877961812d761cf3cc8ddf7647fa7a1 Mon Sep 17 00:00:00 2001 From: souravirus Date: Mon, 9 Jul 2018 01:53:48 +0530 Subject: [PATCH] Corrected the wikis_spec.js --- spec/javascripts/wikis_spec.js | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/spec/javascripts/wikis_spec.js b/spec/javascripts/wikis_spec.js index c88ed1f4b9f..26a20b53a5c 100644 --- a/spec/javascripts/wikis_spec.js +++ b/spec/javascripts/wikis_spec.js @@ -8,36 +8,27 @@ describe("Wikis", function() { beforeEach(function() { // for phantomjs running - jasmine.getFixtures().fixturesPath="../../spec/javascripts/fixtures"; // for in-browser running... still doesn't work //jasmine.getFixtures().fixturesPath = 'assets/fixtures'; - preloadFixtures('content.html'); + fixture.preload('content.html'); - jasmine.Ajax.install(); }); + it("adds deep links like example.com#Sub+section", function() { - afterEach(function(){ - - jasmine.Ajax.uninstall(); - - }); - - xit("adds deep links like example.com#Sub+section", function() { - - loadFixtures('content.html'); + fixture.load('content.html'); addDeepLinks($('#content')); - expect($('#content h2 i.fa').length).not.toBe(0); + expect($('#content h2 i.fa').length).to.not.equal(0); }); - xit("adds table CSS", function() { + it("adds table CSS", function() { - loadFixtures('content.html'); + fixture.load('content.html'); postProcessContent($('#content')); - expect($('#content table.table').length).not.toBe(0); + expect($('#content table.table').length).to.not.equal(0); });