Skip to content

Commit 9ff1aba

Browse files
tests: mock get_config for core testing
1 parent 0c0619c commit 9ff1aba

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/unit/core_spec.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ local function mock_api_client()
2121
get_current_project = function()
2222
return Promise.new():resolve({ id = 'test-project-id' })
2323
end,
24+
get_config = function()
25+
return Promise.new():resolve({ agent = {
26+
build = { disable = false, mode = 'primary' }
27+
}})
28+
end,
2429
}
2530
end
2631

0 commit comments

Comments
 (0)