From b9955832ee377272d457f4d78a93aa5d56271463 Mon Sep 17 00:00:00 2001 From: He H Date: Wed, 8 Nov 2023 15:53:41 +0800 Subject: [PATCH] Fix: Import "ResourceModel" in QUnit Test File --- .../03_Get-Started/step-27-unit-test-with-qunit-e1ce1de.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/03_Get-Started/step-27-unit-test-with-qunit-e1ce1de.md b/docs/03_Get-Started/step-27-unit-test-with-qunit-e1ce1de.md index 8a275d5f..cc90c4fd 100644 --- a/docs/03_Get-Started/step-27-unit-test-with-qunit-e1ce1de.md +++ b/docs/03_Get-Started/step-27-unit-test-with-qunit-e1ce1de.md @@ -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", {});