X Tutup
Skip to content

Commit f3168f5

Browse files
committed
Simplify test
1 parent f27fdcb commit f3168f5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/unit/functions/noSelfAnnotation.spec.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ test("@noSelf on parent namespace declaration removes context argument", () => {
5555
// additional coverage for https://github.com/TypeScriptToLua/TypeScriptToLua/issues/1292
5656
test("explicit this parameter respected over @noSelf", () => {
5757
util.testModule`
58-
/** @noSelfInFile */
59-
function foo(this: unknown, arg: any) {
60-
return {self: this, arg};
61-
}
62-
export const result = foo(1);
58+
/** @noSelfInFile **/
59+
const func: Function = () => 1;
60+
export const result = func(1);
6361
`.expectToMatchJsResult();
6462
});

0 commit comments

Comments
 (0)
X Tutup