Skip to content

Commit

Permalink
[INTERNAL] Test fixtures: Adopt to required namespaces
Browse files Browse the repository at this point in the history
Tests are failing due to SAP/ui5-builder#430

 Adopt tests fixture to provide necessary manifest.json file.
  • Loading branch information
RandomByte committed Mar 23, 2020
1 parent 48adadc commit 5cd6af9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions test/fixtures/application.a/webapp/manifest.json
Original file line number Diff line number Diff line change
@@ -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}}"
}
}
2 changes: 1 addition & 1 deletion test/lib/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>(.*)<\/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");
Expand Down

0 comments on commit 5cd6af9

Please sign in to comment.