From 6396492773733ca94c875e5535b894c33946d3ce Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 11 May 2021 00:12:55 +0200 Subject: [PATCH] Remove unneeded tests --- test.ts | 3 +-- test/TagQuestion.spec.ts | 39 --------------------------------------- 2 files changed, 1 insertion(+), 41 deletions(-) diff --git a/test.ts b/test.ts index 66bfba1de5..45ad617f2e 100644 --- a/test.ts +++ b/test.ts @@ -1,5 +1,4 @@ -alert("Hello wrold!") -downloadTxtFile("abc") \ No newline at end of file +alert("Hello world!") \ No newline at end of file diff --git a/test/TagQuestion.spec.ts b/test/TagQuestion.spec.ts index 808bbc8ba6..31bf75c0b3 100644 --- a/test/TagQuestion.spec.ts +++ b/test/TagQuestion.spec.ts @@ -54,45 +54,6 @@ new T("TagQuestionElement", T.assertContains("What is the name of this bookcase?", html); T.assertContains("This bookcase has no name", html); T.assertContains(" { - const tags = new UIEventSource({ - id: "node/123", - amenity: 'drinking_water' - }); - const jsonConfig = { - "#": "Bottle refill", - "question": { - "en": "How easy is it to fill water bottles?", - "nl": "Hoe gemakkelijk is het om drinkbussen bij te vullen?", - "de": "Wie einfach ist es, Wasserflaschen zu füllen?" - }, - "mappings": [ - { - "if": "bottle=yes", - "then": { - "en": "It is easy to refill water bottles", - "nl": "Een drinkbus bijvullen gaat makkelijk", - "de": "Es ist einfach, Wasserflaschen nachzufüllen" - } - }, - { - "if": "bottle=no", - "then": { - "en": "Water bottles may not fit", - "nl": "Een drinkbus past moeilijk", - "de": "Wasserflaschen passen möglicherweise nicht" - } - } - ] - }; - const config = new TagRenderingConfig( - jsonConfig, null, "test"); - const questionElement = new EditableTagRendering(tags, config); - const html = questionElement.InnerRender(); - T.assertContains("How easy is it to fill water bottles?", html); - T.assertContains("It is easy to refill water bottles", html); - T.assertContains("