Skip to content

Commit 6e86eb8

Browse files
committed
fmt
1 parent 18776f3 commit 6e86eb8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

__tests__/functions/environment-targets.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ test('checks the comment body and finds an explicit environment target and an ex
190190
target: 'development',
191191
noop: true,
192192
stable_branch_used: false,
193-
params: '--cpu=2 --memory=4G --env=development --port=8080 --name=my-app -q my-queue',
193+
params:
194+
'--cpu=2 --memory=4G --env=development --port=8080 --name=my-app -q my-queue',
194195
sha: '82c238c277ca3df56fe9418a5913d9188eafe3bc'
195196
}
196197
})

__tests__/functions/params.test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ test('it parses numeric values correctly', async () => {
4040

4141
test('it parses plain values', async () => {
4242
const parsed = parseParams('count 42')
43-
expect(parsed).toHaveProperty('_', ["count", 42])
43+
expect(parsed).toHaveProperty('_', ['count', 42])
4444
})
4545

4646
test('it parses string values with comma separation', async () => {
4747
const parsed = parseParams('LOG_LEVEL=debug,CPU_CORES=4')
48-
expect(parsed).toHaveProperty('_', ["LOG_LEVEL=debug,CPU_CORES=4"])
48+
expect(parsed).toHaveProperty('_', ['LOG_LEVEL=debug,CPU_CORES=4'])
4949
})
5050

5151
test('it parses boolean values correctly', async () => {
@@ -62,7 +62,9 @@ test('it parses nested objects correctly', async () => {
6262
})
6363

6464
test('it parses a real world example correctly', async () => {
65-
const parsed = parseParams('--cpu=2 --memory=4G --env=development --port=8080 --name=my-app -q my-queue')
65+
const parsed = parseParams(
66+
'--cpu=2 --memory=4G --env=development --port=8080 --name=my-app -q my-queue'
67+
)
6668
expect(parsed).toHaveProperty('cpu', 2)
6769
expect(parsed).toHaveProperty('memory', '4G')
6870
expect(parsed).toHaveProperty('env', 'development')

0 commit comments

Comments
 (0)