Skip to content

Commit

Permalink
Adapt tests to new behavior of FileSystem._runGlob which now throws f…
Browse files Browse the repository at this point in the history
…or GLOB errors
  • Loading branch information
RandomByte committed May 23, 2019
1 parent 4fb9d6d commit 925909f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
6 changes: 2 additions & 4 deletions test/lib/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,7 @@ const libraryITree = {
}
},
"pathMappings": {
"/resources/": "main/src",
"/test-resources/": "main/test"
"/resources/": "main/src"
}
}
};
Expand Down Expand Up @@ -968,8 +967,7 @@ const themeJTree = {
}
},
"pathMappings": {
"/resources/": "main/src",
"/test-resources/": "main/test"
"/resources/": "main/src"
}
}
};
13 changes: 6 additions & 7 deletions test/lib/tasks/bundlers/generateManifestBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const assert = chai.assert;
const ui5Builder = require("../../../../");
const builder = ui5Builder.builder;
const applicationBPath = path.join(__dirname, "..", "..", "..", "fixtures", "application.b");
const libraryCore = path.join(__dirname, "..", "..", "fixtures", "sap.ui.core-evo");
const libraryCore = path.join(__dirname, "..", "..", "..", "fixtures", "sap.ui.core-evo");
const libraryKPath = path.join(__dirname, "..", "..", "..", "fixtures", "library.k");
const {promisify} = require("util");
const extractZip = promisify(require("extract-zip"));
Expand Down Expand Up @@ -95,7 +95,7 @@ const applicationBTree = {
{
"id": "library.d",
"version": "1.0.0",
"path": path.join(applicationBPath, "node_modules", "library.d"),
"path": path.join(applicationBPath, "..", "library.d"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
Expand All @@ -120,7 +120,7 @@ const applicationBTree = {
{
"id": "library.a",
"version": "1.0.0",
"path": path.join(applicationBPath, "node_modules", "collection", "library.a"),
"path": path.join(applicationBPath, "..", "collection", "library.a"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
Expand All @@ -145,7 +145,7 @@ const applicationBTree = {
{
"id": "library.b",
"version": "1.0.0",
"path": path.join(applicationBPath, "node_modules", "collection", "library.b"),
"path": path.join(applicationBPath, "..", "collection", "library.b"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
Expand All @@ -170,7 +170,7 @@ const applicationBTree = {
{
"id": "library.c",
"version": "1.0.0",
"path": path.join(applicationBPath, "node_modules", "collection", "library.c"),
"path": path.join(applicationBPath, "..", "collection", "library.c"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
Expand Down Expand Up @@ -257,8 +257,7 @@ const libraryKTree = {
}
},
"pathMappings": {
"/resources/": "src",
"/test-resources/": "test"
"/resources/": "src"
}
}
};
8 changes: 4 additions & 4 deletions test/lib/tasks/bundlers/generateStandaloneAppBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const applicationBTree = {
{
"id": "library.d",
"version": "1.0.0",
"path": path.join(applicationBPath, "node_modules", "library.d"),
"path": path.join(applicationBPath, "..", "library.d"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
Expand All @@ -244,7 +244,7 @@ const applicationBTree = {
{
"id": "library.a",
"version": "1.0.0",
"path": path.join(applicationBPath, "node_modules", "collection", "library.a"),
"path": path.join(applicationBPath, "..", "collection", "library.a"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
Expand All @@ -269,7 +269,7 @@ const applicationBTree = {
{
"id": "library.b",
"version": "1.0.0",
"path": path.join(applicationBPath, "node_modules", "collection", "library.b"),
"path": path.join(applicationBPath, "..", "collection", "library.b"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
Expand All @@ -294,7 +294,7 @@ const applicationBTree = {
{
"id": "library.c",
"version": "1.0.0",
"path": path.join(applicationBPath, "node_modules", "collection", "library.c"),
"path": path.join(applicationBPath, "..", "collection", "library.c"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
Expand Down

0 comments on commit 925909f

Please sign in to comment.