Skip to content

Commit

Permalink
Fix: Import "ResourceModel" in QUnit Test File
Browse files Browse the repository at this point in the history
  • Loading branch information
hhelibeb authored Nov 8, 2023
1 parent 93916b0 commit b995583
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/03_Get-Started/step-27-unit-test-with-qunit-e1ce1de.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ We add a new folder `unit` under the `test` folder and a `model` subfolder where



## webapp/test/unit/model/formatter.js
## webapp/test/unit/model/formatter.js \(New\)

```js
sap.ui.define([
"ui5/walkthrough/model/formatter"
], (formatter) => {
"ui5/walkthrough/model/formatter",
"sap/ui/model/resource/ResourceModel"
], (formatter, ResourceModel) => {
"use strict";

QUnit.module("Formatting functions", {});
Expand Down

0 comments on commit b995583

Please sign in to comment.