Merge branch 'feat/config-validation' into feat/derive

This commit is contained in:
Barrett Ruth 2025-09-19 23:25:56 -04:00
commit 8e7f273f40

View file

@ -30,17 +30,17 @@ describe('cp.config', function()
assert.equals('table', type(result.scrapers)) assert.equals('table', type(result.scrapers))
end) end)
it('validates extension against supported filetypes', function() it('allows custom extensions', function()
local invalid_config = { local custom_config = {
contests = { contests = {
test_contest = { test_contest = {
cpp = { extension = 'invalid' }, cpp = { extension = 'custom' },
}, },
}, },
} }
assert.has_error(function() assert.has_no.errors(function()
config.setup(invalid_config) config.setup(custom_config)
end) end)
end) end)