Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions test/fixtures/linter/rules/renderer/15Control.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sap.ui.define(["sap/ui/core/Control"], function (Control) {
var myControl = Control.extend("mycomp.myControl", {
metadata: {},
// Comment
renderer: function(oRm, oControl) {
}
});
return myControl;
});
8 changes: 8 additions & 0 deletions test/fixtures/transpiler/amd/Control_With_Renderer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sap.ui.define(["sap/ui/core/Control"], function (Control) {
return Control.extend("mycomp.myControl", {
metadata: {},
// Comment
renderer: function(oRm, oControl) {
}
});
});
30 changes: 30 additions & 0 deletions test/lib/linter/amdTranspiler/snapshots/transpiler.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,36 @@ Generated by [AVA](https://avajs.dev).
version: 3,
}

## Transpile Control_Renderer.js

> Snapshot 1

`import Control from "sap/ui/core/Control";␊
/**␊
* @namespace mycomp␊
*/␊
export default class myControl_1 extends Control {␊
static metadata = {};␊
static ␊
// Comment␊
renderer(oRm, oControl) {␊
}␊
}␊
//# sourceMappingURL=Control_Renderer.js.map`

> Snapshot 2

{
file: 'Control_Renderer.js',
mappings: 'OAAiD,OAAO,MAAzC,qBAAqB;;;;yCAC5B,OAAO;WACb,QAAQ,GAAE,EAAE;;IACZ,UAAU;IACV,QAAQ,CAAW,GAAG,EAAE,QAAQ;IAChC,CAAC',
names: [],
sourceRoot: '',
sources: [
'Control_Renderer.js',
],
version: 3,
}

## Transpile Dependencies.js

> Snapshot 1
Expand Down
Binary file modified test/lib/linter/amdTranspiler/snapshots/transpiler.ts.snap
Binary file not shown.
Loading