Skip to content

Commit e39dfeb

Browse files
committed
OpenUI5 Documentation Update 05.12.2024
1 parent 062a46f commit e39dfeb

4 files changed

+37
-41
lines changed

docs/Step_27_Unit_Test_with_QUnit_TypeScript_750c8c1.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ The page will be referenced in the test suite that we will create next.
119119
<!DOCTYPE html>
120120
<html>
121121
<head>
122-
<meta charset="utf-8">
123-
<script
122+
<meta charset="utf-8">
123+
<script
124124
src="../resources/sap/ui/test/starter/runTest.js"
125125
data-sap-ui-resource-roots='{
126126
"test-resources.ui5.walkthrough": "./"
127127
}'
128128
></script>
129129
</head>
130130
<body class="sapUiBody">
131-
<div id="qunit"></div>
132-
<div id="qunit-fixture"></div>
131+
<div id="qunit"></div>
132+
<div id="qunit-fixture"></div>
133133
</body>
134134
</html>
135135
```
@@ -156,8 +156,8 @@ For more information, see [Concept and Basic Setup](Concept_and_Basic_Setup_22f5
156156
```ts
157157

158158
export default {
159-
name: "QUnit test suite for UI5 TypeScript Walkthrough",
160-
defaults: {
159+
name: "QUnit test suite for UI5 TypeScript Walkthrough",
160+
defaults: {
161161
page: "ui5://test-resources/ui5/walkthrough/Test.qunit.html?testsuite={suite}&test={name}",
162162
qunit: {
163163
version: 2
@@ -170,12 +170,12 @@ export default {
170170
"ui5/walkthrough": "../"
171171
}
172172
}
173-
},
174-
tests: {
175-
"unit/unitTests": {
176-
title: "UI5 TypeScript Walkthrough - Unit Tests"
177-
}
178-
}
173+
},
174+
tests: {
175+
"unit/unitTests": {
176+
title: "UI5 TypeScript Walkthrough - Unit Tests"
177+
}
178+
}
179179
};
180180
```
181181

docs/Step_27_Unit_Test_with_QUnit_e1ce1de.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -152,31 +152,30 @@ The test suite serves as the entry point for all tests within our project such a
152152

153153
```js
154154

155-
156155
sap.ui.define(() => {
157-
"use strict";
158-
return {
159-
name: "QUnit test suite for UI5 Walkthrough",
160-
defaults: {
161-
page: "ui5://test-resources/ui5/walkthrough/Test.qunit.html?testsuite={suite}&test={name}",
162-
qunit: {
163-
version: 2
164-
},
165-
ui5: {
166-
theme: "sap_horizon"
167-
},
168-
loader: {
169-
paths: {
170-
"ui5/walkthrough": "../"
171-
}
172-
}
173-
},
174-
tests: {
175-
"unit/unitTests": {
176-
title: "UI5 Walkthrough - Unit Tests"
177-
}
178-
}
179-
};
156+
"use strict";
157+
return {
158+
name: "QUnit test suite for UI5 Walkthrough",
159+
defaults: {
160+
page: "ui5://test-resources/ui5/walkthrough/Test.qunit.html?testsuite={suite}&test={name}",
161+
qunit: {
162+
version: 2
163+
},
164+
ui5: {
165+
theme: "sap_horizon"
166+
},
167+
loader: {
168+
paths: {
169+
"ui5/walkthrough": "../"
170+
}
171+
}
172+
},
173+
tests: {
174+
"unit/unitTests": {
175+
title: "UI5 Walkthrough - Unit Tests"
176+
}
177+
}
178+
};
180179
});
181180
```
182181

docs/Step_28_Integration_Test_with_OPA_9bf4dce.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,8 @@ We create a new `opaTests.qunit.js` file under `webapp/test/integration/`.
155155
This module imports our `NavigationJourney` and is the entrypoint for all integration tests in the project.
156156

157157
```js
158-
159158
sap.ui.define([
160-
"./NavigationJourney"
159+
"./NavigationJourney"
161160
]);
162161
```
163162

@@ -170,7 +169,6 @@ sap.ui.define([
170169
Finally we reference the new `integration/opaTests.qunit.js` in the `testsuite.qunit.js` file. The `.qunit.js` extension is omitted and will be added automatically during runtime.
171170

172171
```js
173-
174172
sap.ui.define(() => {
175173
"use strict";
176174
return {

docs/Step_28_Integration_Test_with_OPA_TypeScript_412f0b6.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ import "./NavigationJourney";
164164
Finally we reference the new `integration/opaTests.qunit.ts` in the `testsuite.qunit.ts` file. The `.qunit.ts` extension is omitted and will be added automatically during runtime.
165165

166166
```ts
167-
168167
export default {
169-
// ...
168+
// ...
170169
tests: {
171170
"unit/unitTests": {
172171
title: "UI5 TypeScript Walkthrough - Unit Tests"

0 commit comments

Comments
 (0)