From 6e7383c72c8514097e68d4a5f7b8002b7cb38ab9 Mon Sep 17 00:00:00 2001 From: mossroy Date: Thu, 7 Jan 2016 18:05:48 +0100 Subject: [PATCH] Fix the unit tests on evopedia entries. See #140 --- tests/tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/tests.js b/tests/tests.js index 8685e938..09ecf32d 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -172,7 +172,7 @@ define(['jquery', 'title', 'archive', 'zimArchive', 'zimDirEntry', 'util', 'geom equal(title._name, "Diego_Velázquez", "Name of the title is correct"); start(); }; - localEvopediaArchive.getTitleByName("A/Diego_Velázquez").then(callbackFunction); + localEvopediaArchive.getTitleByName("Diego_Velázquez").then(callbackFunction); }); asyncTest("check getTitleByName with quote : Hundred Years' War", function() { expect(2); @@ -181,7 +181,7 @@ define(['jquery', 'title', 'archive', 'zimArchive', 'zimDirEntry', 'util', 'geom equal(title._name, "Hundred_Years'_War", "Name of the title is correct"); start(); }; - localEvopediaArchive.getTitleByName("A/Hundred_Years'_War").then(callbackFunction); + localEvopediaArchive.getTitleByName("Hundred_Years'_War").then(callbackFunction); }); test("check parseTitleFromId", function() { @@ -219,7 +219,7 @@ define(['jquery', 'title', 'archive', 'zimArchive', 'zimDirEntry', 'util', 'geom equal(title._name, "AIDS", "Name of the title is correct"); localEvopediaArchive.readArticle(title, callbackArticleRead); }; - localEvopediaArchive.getTitleByName("A/AIDS").then(callbackTitleFound); + localEvopediaArchive.getTitleByName("AIDS").then(callbackTitleFound); }); asyncTest("check getTitleByName with a title name that does not exist in the archive", function() { @@ -228,7 +228,7 @@ define(['jquery', 'title', 'archive', 'zimArchive', 'zimDirEntry', 'util', 'geom ok(title === null, "No title found because it does not exist in the archive"); start(); }; - localEvopediaArchive.getTitleByName("A/abcdef").then(callbackTitleFound); + localEvopediaArchive.getTitleByName("abcdef").then(callbackTitleFound); }); asyncTest("check loading a math image", function() {