From 5cd6af937b8cf211ed3084cefefcf4a954e6b5b2 Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Mon, 23 Mar 2020 20:34:54 +0100 Subject: [PATCH] [INTERNAL] Test fixtures: Adopt to required namespaces Tests are failing due to https://github.com/SAP/ui5-builder/pull/430 Adopt tests fixture to provide necessary manifest.json file. --- test/fixtures/application.a/webapp/manifest.json | 13 +++++++++++++ test/lib/server/main.js | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/application.a/webapp/manifest.json diff --git a/test/fixtures/application.a/webapp/manifest.json b/test/fixtures/application.a/webapp/manifest.json new file mode 100644 index 00000000..781945df --- /dev/null +++ b/test/fixtures/application.a/webapp/manifest.json @@ -0,0 +1,13 @@ +{ + "_version": "1.1.0", + "sap.app": { + "_version": "1.1.0", + "id": "id1", + "type": "application", + "applicationVersion": { + "version": "1.2.2" + }, + "embeds": ["embedded"], + "title": "{{title}}" + } +} \ No newline at end of file diff --git a/test/lib/server/main.js b/test/lib/server/main.js index 54bd08b5..7ce17c8a 100644 --- a/test/lib/server/main.js +++ b/test/lib/server/main.js @@ -570,7 +570,7 @@ test("Get index of resources", (t) => { t.deepEqual(res.statusCode, 200, "Correct HTTP status code"); t.is(res.headers["content-type"], "text/html; charset=utf-8", "Correct content type"); t.is(/(.*)<\/title>/i.exec(res.text)[1], "Index of /", "Found correct title"); - t.deepEqual(res.text.match(/<li/g).length, 8, "Found correct amount of <li> elements"); + t.deepEqual(res.text.match(/<li/g).length, 9, "Found correct amount of <li> elements"); }), request.get("/resources").then((res) => { t.deepEqual(res.statusCode, 200, "Correct HTTP status code");