generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add test for import from test-resources in library
- Loading branch information
1 parent
fe4b99d
commit 8b19da4
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
test/fixtures/linter/projects/library.with.custom.paths/src/main/js/ButtonFactory.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sap.ui.define(["sap/m/Button"], function (Button) { | ||
"use strict"; | ||
|
||
return { | ||
createButton: () => new Button() | ||
}; | ||
}); |
7 changes: 7 additions & 0 deletions
7
test/fixtures/linter/projects/library.with.custom.paths/src/test/js/ButtonFactory.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sap.ui.define(["library/with/custom/paths/ButtonFactory"], function (ButtonFactory) { | ||
"use strict"; | ||
|
||
ButtonFactory.createButton().attachTap(function (event) { | ||
alert(event.getSource()); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.