You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Delete legacy-utils.ts
* Updated some test suites to use new testbuilder
* Added module capabilities to testbuilder
* Fixed more test cases
* Updated remaining test cases that used legacy utils
* Fixed unused variable
* Fix prettier
* Fixed remaining tests
Fixed function assignment test according to discord discussion (https://discord.com/channels/515854149821267971/600291243523702805/800403280512417792)
Fixed hoisting by hardcoding the expected value, because the current TestBuilder.executeJS() setup does not handle module hoisting
* Addressed review comments
* Addressed 2nd review
Copy file name to clipboardExpand all lines: test/unit/__snapshots__/identifiers.spec.ts.snap
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,14 @@ exports[`ambient identifier must be a valid lua identifier (object literal short
128
128
129
129
exports[`ambient identifier must be a valid lua identifier (object literal shorthand) ("ɥɣɎɌͼƛಠ"): diagnostics 1`] =`"main.ts(3,27): error TSTL: Invalid ambient identifier name 'ɥɣɎɌͼƛಠ'. Ambient identifiers must be valid lua identifiers."`;
130
130
131
+
exports[`declaration-only variable with lua keyword as name is not renamed 1`] =`
132
+
"local ____exports = {}
133
+
function ____exports.__main(self)
134
+
type(7)
135
+
end
136
+
return ____exports"
137
+
`;
138
+
131
139
exports[`undeclared identifier must be a valid lua identifier ("$$"): code 1`] =`"foo = _____24_24_24"`;
132
140
133
141
exports[`undeclared identifier must be a valid lua identifier ("$$"): diagnostics 1`] =`"main.ts(2,21): error TSTL: Invalid ambient identifier name '$$$'. Ambient identifiers must be valid lua identifiers."`;
0 commit comments