Skip to content

Commit 47d2ff6

Browse files
committed
test(NoDeprecatedApi): Add fixture for sap/ushell/Container
1 parent d329c96 commit 47d2ff6

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

test/fixtures/linter/rules/NoDeprecatedApi/NoDeprecatedApi.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sap.ui.define([
22
"sap/m/Button", "sap/m/DateTimeInput", "sap/base/util/includes", "sap/ui/Device", "sap/ui/core/library", "sap/ui/generic/app/navigation/service/NavigationHandler",
3-
"sap/ui/table/Table", "sap/ui/table/plugins/MultiSelectionPlugin", "sap/ui/core/Configuration", "sap/m/library"
4-
], function(Button, DateTimeInput, includes, Device, coreLib, NavigationHandler, Table, MultiSelectionPlugin, Configuration, mobileLib) {
3+
"sap/ui/table/Table", "sap/ui/table/plugins/MultiSelectionPlugin", "sap/ui/core/Configuration", "sap/m/library", "sap/ushell/Container",
4+
], function(Button, DateTimeInput, includes, Device, coreLib, NavigationHandler, Table, MultiSelectionPlugin, Configuration, mobileLib, Container) {
55

66
var dateTimeInput = new DateTimeInput(); // Control is deprecated. A finding only appears for the module dependency, not for the usage.
77

@@ -48,4 +48,6 @@ sap.ui.define([
4848

4949
const navigationHandler = new NavigationHandler({});
5050
navigationHandler.storeInnerAppState({}); // Method "storeInnerAppState" is deprecated
51+
52+
await Container.createRenderer();
5153
});

test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,14 @@ Generated by [AVA](https://avajs.dev).
6666
6767
[
6868
{
69-
coverageInfo: [],
69+
coverageInfo: [
70+
{
71+
category: 1,
72+
column: 8,
73+
line: 52,
74+
message: 'Unable to analyze this method call because the type of identifier "createRenderer" in "Container.createRenderer()"" could not be determined',
75+
},
76+
],
7077
errorCount: 23,
7178
fatalErrorCount: 0,
7279
filePath: 'NoDeprecatedApi.js',
102 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)