Skip to content

Commit

Permalink
bundle and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Nov 28, 2024
1 parent 73c6391 commit da9859b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
6 changes: 3 additions & 3 deletions __tests__/functions/params.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ beforeEach(() => {
})

test('with empty param object', async () => {
expect(parseParams('')).toStrictEqual({_: []});
expect(parseParams(null)).toStrictEqual({_: []});
expect(parseParams(undefined)).toStrictEqual({_: []});
expect(parseParams('')).toStrictEqual({_: []})
expect(parseParams(null)).toStrictEqual({_: []})
expect(parseParams(undefined)).toStrictEqual({_: []})
})

test('it parses positional parameters', async () => {
Expand Down
12 changes: 6 additions & 6 deletions __tests__/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const validDeploymentOrderMock = jest.spyOn(
validDeploymentOrder,
'validDeploymentOrder'
)
const createDeploymentMock = jest.fn().mockImplementation((data) => {
const createDeploymentMock = jest.fn().mockImplementation(data => {
return {
data: {id: 123}
}
Expand Down Expand Up @@ -1060,7 +1060,7 @@ test('handles and unexpected error and exits', async () => {
}
})

test('stores params and parsed params into context', async() => {
test('stores params and parsed params into context', async () => {
github.context.payload.comment.body = '.deploy | something1 --foo=bar'
const params = 'something1 --foo=bar'
const parsed_params = {
Expand All @@ -1075,7 +1075,7 @@ test('stores params and parsed params into context', async() => {
})
})
expect(await run()).toBe('success')
expect(createDeploymentMock).toHaveBeenCalledWith(data);
expect(setOutputMock).toHaveBeenCalledWith('params', params);
expect(setOutputMock).toHaveBeenCalledWith('parsed_params', parsed_params);
});
expect(createDeploymentMock).toHaveBeenCalledWith(data)
expect(setOutputMock).toHaveBeenCalledWith('params', params)
expect(setOutputMock).toHaveBeenCalledWith('parsed_params', parsed_params)
})
9 changes: 7 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit da9859b

Please sign in to comment.