Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/template-card/test/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sap.ui.define(["sap/ui/integration/Host"], async (Host) => {
});

card.host = host.getId();
card.manifest = "../src/manifest.json";
card.manifest = "../card/manifest.json";

editor.host = host.getId();
editor.card = "card";
Expand Down
2 changes: 1 addition & 1 deletion test/expected/create_integration_card/common/test/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sap.ui.define(["sap/ui/integration/Host"], async (Host) => {
});

card.host = host.getId();
card.manifest = "../src/manifest.json";
card.manifest = "../card/manifest.json";

editor.host = host.getId();
editor.card = "card";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ test.beforeEach(async (t) => {

// Stub globby to return a fixed set of files
t.context.staticFiles = [
"src/manifest.json",
"src/i18n/i18n.properties",
"card/manifest.json",
"card/i18n/i18n.properties",
"test/index.html",
];
t.context.globbyStub = t.context.sinon.stub().resolves(t.context.staticFiles);
Expand Down Expand Up @@ -114,8 +114,8 @@ test("createIntegrationCard executes successfully", async (t) => {

t.is(mkdirStub.callCount, 4);
t.deepEqual(mkdirStub.getCall(0).args, [folderPath, {recursive: true}]);
t.deepEqual(mkdirStub.getCall(1).args, [`${folderPath}/src`.replace(/\//g, path.sep), {recursive: true}]);
t.deepEqual(mkdirStub.getCall(2).args, [`${folderPath}/src/i18n`.replace(/\//g, path.sep), {recursive: true}]);
t.deepEqual(mkdirStub.getCall(1).args, [`${folderPath}/card`.replace(/\//g, path.sep), {recursive: true}]);
t.deepEqual(mkdirStub.getCall(2).args, [`${folderPath}/card/i18n`.replace(/\//g, path.sep), {recursive: true}]);
t.deepEqual(mkdirStub.getCall(3).args, [`${folderPath}/test`.replace(/\//g, path.sep), {recursive: true}]);

// Verify that globby was called with correct parameters
Expand Down Expand Up @@ -218,7 +218,7 @@ test("Error processing template file", async (t) => {
manifestVersion: "1.78.0",
});
}, {
message: `Failed to process template file 'src/manifest.json': ${errorMessage}`,
message: `Failed to process template file 'card/manifest.json': ${errorMessage}`,
instanceOf: Error,
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Generated by [AVA](https://avajs.dev).
> Result of createIntegrationCard should match expected structure

[
'card/dt/Configuration.js',
'card/i18n/i18n.properties',
'card/manifest.json',
'package.json',
'src/dt/Configuration.js',
'src/i18n/i18n.properties',
'src/manifest.json',
'test/App.js',
'test/index.css',
'test/index.html',
Expand All @@ -23,10 +23,10 @@ Generated by [AVA](https://avajs.dev).
> Result of createIntegrationCard should match expected structure

[
'card/dt/Configuration.js',
'card/i18n/i18n.properties',
'card/manifest.json',
'package.json',
'src/dt/Configuration.js',
'src/i18n/i18n.properties',
'src/manifest.json',
'test/App.js',
'test/index.css',
'test/index.html',
Expand All @@ -37,10 +37,10 @@ Generated by [AVA](https://avajs.dev).
> Result of createIntegrationCard should match expected structure

[
'card/dt/Configuration.js',
'card/i18n/i18n.properties',
'card/manifest.json',
'package.json',
'src/dt/Configuration.js',
'src/i18n/i18n.properties',
'src/manifest.json',
'test/App.js',
'test/index.css',
'test/index.html',
Expand All @@ -51,10 +51,10 @@ Generated by [AVA](https://avajs.dev).
> Result of createIntegrationCard should match expected structure

[
'card/dt/Configuration.js',
'card/i18n/i18n.properties',
'card/manifest.json',
'package.json',
'src/dt/Configuration.js',
'src/i18n/i18n.properties',
'src/manifest.json',
'test/App.js',
'test/index.css',
'test/index.html',
Expand All @@ -65,10 +65,10 @@ Generated by [AVA](https://avajs.dev).
> Result of createIntegrationCard should match expected structure

[
'card/dt/Configuration.js',
'card/i18n/i18n.properties',
'card/manifest.json',
'package.json',
'src/dt/Configuration.js',
'src/i18n/i18n.properties',
'src/manifest.json',
'test/App.js',
'test/index.css',
'test/index.html',
Expand All @@ -79,10 +79,10 @@ Generated by [AVA](https://avajs.dev).
> Result of createIntegrationCard should match expected structure

[
'card/dt/Configuration.js',
'card/i18n/i18n.properties',
'card/manifest.json',
'package.json',
'src/dt/Configuration.js',
'src/i18n/i18n.properties',
'src/manifest.json',
'test/App.js',
'test/index.css',
'test/index.html',
Expand Down
Binary file not shown.