Skip to content

Commit c946b02

Browse files
committed
chore: Add tests for local
1 parent 65b78ad commit c946b02

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/providers/provider_local.test.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@ describe('Local Params', () => {
3232
})
3333
})
3434

35+
it('returns on override args', () => {
36+
const inputs = {
37+
args: {
38+
branch: 'main',
39+
pr: '1',
40+
sha: 'testingsha',
41+
slug: 'owner/repo',
42+
},
43+
envs: {},
44+
}
45+
const expected = {
46+
branch: 'main',
47+
build: '',
48+
buildURL: '',
49+
commit: 'testingsha',
50+
job: '',
51+
pr: '1',
52+
service: '',
53+
slug: 'owner/repo',
54+
}
55+
const params = providerLocal.getServiceParams(inputs)
56+
expect(params).toMatchObject(expected)
57+
})
58+
3559
it('returns errors on git command failures', () => {
3660
const inputs = {
3761
args: {},

0 commit comments

Comments
 (0)