From 0dd519cb3cbda834a3f909361ebdc56e1e08fce8 Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Thu, 28 Feb 2019 13:54:23 +0100 Subject: [PATCH] [INTERNAL] Fix tests --- .../build/sap.ui.core/preload/resources/sap-ui-core-dbg.js | 3 +++ test/lib/tasks/bundlers/generateLibraryPreload.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test/expected/build/sap.ui.core/preload/resources/sap-ui-core-dbg.js diff --git a/test/expected/build/sap.ui.core/preload/resources/sap-ui-core-dbg.js b/test/expected/build/sap.ui.core/preload/resources/sap-ui-core-dbg.js new file mode 100644 index 000000000..827fe1cab --- /dev/null +++ b/test/expected/build/sap.ui.core/preload/resources/sap-ui-core-dbg.js @@ -0,0 +1,3 @@ +sap.ui.requireSync("sap/ui/core/Core"); +// as this module contains the Core, we ensure that the Core has been booted +sap.ui.getCore().boot && sap.ui.getCore().boot(); diff --git a/test/lib/tasks/bundlers/generateLibraryPreload.js b/test/lib/tasks/bundlers/generateLibraryPreload.js index 1d4eb86be..5f10168df 100644 --- a/test/lib/tasks/bundlers/generateLibraryPreload.js +++ b/test/lib/tasks/bundlers/generateLibraryPreload.js @@ -95,7 +95,7 @@ test("integration: build sap.ui.core with library preload", async (t) => { assert.directoryDeepEqual(destPath, expectedPath); // Check for all file contents - t.deepEqual(expectedFiles.length, 6, "6 files are expected"); + t.deepEqual(expectedFiles.length, 7, "7 files are expected"); expectedFiles.forEach((expectedFile) => { const relativeFile = path.relative(expectedPath, expectedFile); const destFile = path.join(destPath, relativeFile);