Skip to content

Commit 8d4a695

Browse files
RandomByteflovogt
authored andcommitted
test(NoDeprecatedApi): Add fixture for sap/ushell/Container
1 parent ce4eed8 commit 8d4a695

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

@@ -56,4 +56,6 @@ sap.ui.define([
5656

5757
...moreArgs // Should be ignored
5858
});
59+
60+
await Container.createRenderer();
5961
});

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,14 @@ Generated by [AVA](https://avajs.dev).
869869
870870
[
871871
{
872-
coverageInfo: [],
872+
coverageInfo: [
873+
{
874+
category: 1,
875+
column: 8,
876+
line: 60,
877+
message: 'Unable to analyze this method call because the type of identifier "createRenderer" in "Container.createRenderer()"" could not be determined',
878+
},
879+
],
873880
errorCount: 25,
874881
fatalErrorCount: 0,
875882
filePath: 'NoDeprecatedApi.js',
Binary file not shown.

0 commit comments

Comments
 (0)