Skip to content

Commit f5511e6

Browse files
committed
[INTERNAL] Test fixtures: Adopt to required namespaces
Tests are failing due to SAP/ui5-builder#430 Adopt tests fixture to provide necessary manifest.json file.
1 parent 48adadc commit f5511e6

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"_version": "1.1.0",
3+
"sap.app": {
4+
"_version": "1.1.0",
5+
"id": "id1",
6+
"type": "application",
7+
"applicationVersion": {
8+
"version": "1.2.2"
9+
},
10+
"embeds": ["embedded"],
11+
"title": "{{title}}"
12+
}
13+
}

test/lib/server/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ test("Get index of resources", (t) => {
570570
t.deepEqual(res.statusCode, 200, "Correct HTTP status code");
571571
t.is(res.headers["content-type"], "text/html; charset=utf-8", "Correct content type");
572572
t.is(/<title>(.*)<\/title>/i.exec(res.text)[1], "Index of /", "Found correct title");
573-
t.deepEqual(res.text.match(/<li/g).length, 8, "Found correct amount of <li> elements");
573+
t.deepEqual(res.text.match(/<li/g).length, 9, "Found correct amount of <li> elements");
574574
}),
575575
request.get("/resources").then((res) => {
576576
t.deepEqual(res.statusCode, 200, "Correct HTTP status code");

0 commit comments

Comments
 (0)