Skip to content

Commit

Permalink
fix: Nested QUnit Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciolauffer committed Nov 30, 2023
1 parent a18a1c0 commit 6fa35d6
Show file tree
Hide file tree
Showing 9 changed files with 753 additions and 818 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
security-events: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
Expand Down
4 changes: 2 additions & 2 deletions examples/openui5-sample-app/ui5.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
specVersion: '3.0'
specVersion: '3.1'
metadata:
name: openui5-sample-app
type: application
framework:
name: OpenUI5
version: "1.118.0"
version: "1.120.0"
libraries:
- name: sap.f
- name: sap.m
Expand Down
3 changes: 2 additions & 1 deletion examples/openui5-sample-app/webapp/test/unit/AllTests.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sap.ui.define([
"./controller/App.controller"
"./controller/App.controller",
"./controller/NestedModule.controller"
]);
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* global QUnit, sinon*/

sap.ui.define([
], () => {
"use strict";

QUnit.module("Test nested modules", {
beforeEach() {
this.wdio = true;
},
afterEach() {
this.wdio = null;
}
}, function() {
QUnit.module('QUnit nested module 1', () => {
QUnit.test('Should pass dummy test 1', (assert) => {
assert.equal(1, 1);
});
});

QUnit.module('QUnit nested module 2', () => {
QUnit.test('Should pass dummy test 1', (assert) => {
assert.equal(1, 1);
});

QUnit.test('Should pass dummy test 2', (assert) => {
assert.equal(1, 1);
});

QUnit.test('Should pass dummy test 3', (assert) => {
assert.equal(1, 1);
});
});

QUnit.module('QUnit nested module 3', () => {
QUnit.module('QUnit double nested module 1', () => {
QUnit.test('Should pass dummy test 1', (assert) => {
assert.equal(1, 1);
});
});
});
});

});
Loading

0 comments on commit 6fa35d6

Please sign in to comment.