Add Lua test for record model property

master
elsid 1 month ago
parent 36198e9413
commit 5b2764e75a
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -119,7 +119,6 @@ local function testRecordStore(store, storeName, skipPairs)
end) end)
testing.expectEqual(status, true, storeName) testing.expectEqual(status, true, storeName)
end end
local function testRecordStores() local function testRecordStores()
@ -285,6 +284,12 @@ local function testCommitCrime()
testing.expectEqual(types.Player.getCrimeLevel(player), 0, "Crime level should not change if the victim's alarm value is low and there's no other witnesses") testing.expectEqual(types.Player.getCrimeLevel(player), 0, "Crime level should not change if the victim's alarm value is low and there's no other witnesses")
end end
local function testRecordModelProperty()
initPlayer()
local player = world.players[1]
testing.expectEqual(types.NPC.record(player).model, 'meshes\\basicplayer.dae')
end
tests = { tests = {
{'timers', testTimers}, {'timers', testTimers},
{'rotating player with controls.yawChange should change rotation', function() {'rotating player with controls.yawChange should change rotation', function()
@ -345,7 +350,8 @@ tests = {
testing.runLocalTest(player, 'playerWeaponAttack') testing.runLocalTest(player, 'playerWeaponAttack')
end}, end},
{'vfs', testVFS}, {'vfs', testVFS},
{'testCommitCrime', testCommitCrime} {'testCommitCrime', testCommitCrime},
{'recordModelProperty', testRecordModelProperty},
} }
return { return {

Loading…
Cancel
Save