fix(publishertier): store empty instead of stringified false #4910
GitHub Actions / Test Report
failed
Oct 19, 2024 in 0s
274 tests run, 273 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 1 in lua:6
github-actions / Test Report
lua:6.Team Card Storage standard fields
spec/team_card_storage_spec.lua:36: Expected objects to be the same.
Passed in:
Raw output
spec/team_card_storage_spec.lua:36: Expected objects to be the same.
Passed in:
(table: 0x55e461fdd030) {
[date] = '2022-10-15'
[extradata] = { }
[game] = 'commons'
[icon] = 'test.png'
[icondark] = 'test dark.png'
[image] = 'dummy.png'
[imagedark] = 'dummydark.png'
[liquipediatier] = '1'
[liquipediatiertype] = 'Qualifier'
[mode] = 'team'
[objectName] = 'ranking_prefix_team liquid'
[parent] = 'FakePage'
[participant] = 'Team Liquid'
[series] = 'Test Series'
[startdate] = '2022-10-13'
[tournament] = 'Test Tournament' }
Expected:
(table: 0x55e461fddf00) {
[date] = '2022-10-15'
[extradata] = { }
[game] = 'commons'
[icon] = 'test.png'
[icondark] = 'test dark.png'
[image] = 'dummy.png'
[imagedark] = 'dummydark.png'
[liquipediatier] = '1'
[liquipediatiertype] = 'Qualifier'
[mode] = 'team'
[objectName] = 'ranking_prefix_team liquid'
[parent] = 'FakePage'
[participant] = 'Team Liquid'
*[publishertier] = 'false'
[series] = 'Test Series'
[startdate] = '2022-10-13'
[tournament] = 'Test Tournament' }
stack traceback:
spec/team_card_storage_spec.lua:36: in function <spec/team_card_storage_spec.lua:6>
Loading