Skip to content

Commit 4ab5891

Browse files
committed
test: remove obsolete lua 5.0 arg test
1 parent f2563cc commit 4ab5891

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unit/spread.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { formatCode } from "../util";
44

55
// TODO: Make some utils for testing other targets
66
const expectUnpack: util.TapCallback = builder => expect(builder.getMainLuaCodeChunk()).toMatch(/[^.]unpack\(/);
7-
const expectArg: util.TapCallback = builder => expect(builder.getMainLuaCodeChunk()).toMatch(/ arg/);
87
const expectTableUnpack: util.TapCallback = builder => expect(builder.getMainLuaCodeChunk()).toContain("table.unpack");
98
const expectLualibUnpack: util.TapCallback = builder => expect(builder.getMainLuaCodeChunk()).toContain("__TS__Unpack");
109

@@ -77,7 +76,7 @@ describe("in function call", () => {
7776
{
7877
[tstl.LuaTarget.Universal]: builder => builder.tap(expectLualibUnpack).expectToMatchJsResult(),
7978
[tstl.LuaTarget.LuaJIT]: builder => builder.tap(expectUnpack),
80-
[tstl.LuaTarget.Lua50]: builder => builder.tap(expectArg).expectToMatchJsResult(),
79+
[tstl.LuaTarget.Lua50]: builder => builder.tap(expectUnpack).expectToMatchJsResult(),
8180
[tstl.LuaTarget.Lua51]: builder => builder.tap(expectUnpack).expectToMatchJsResult(),
8281
[tstl.LuaTarget.Lua52]: builder => builder.tap(expectTableUnpack).expectToMatchJsResult(),
8382
[tstl.LuaTarget.Lua53]: builder => builder.tap(expectTableUnpack).expectToMatchJsResult(),

0 commit comments

Comments
 (0)