Skip to content

Commit

Permalink
chore: fix variable name in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sorccu committed Jan 28, 2025
1 parent 4962e96 commit 3319bdc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/cli/src/constructs/__tests__/tcp-check.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ describe('TcpCheck', () => {
})
Session.availableRuntimes = runtimes
Session.defaultRuntimeId = '2022.02'
const apiCheck = new TcpCheck('test-check', {
const check = new TcpCheck('test-check', {
name: 'Test Check',
request,
})
const payload = apiCheck.synthesize()
const payload = check.synthesize()
expect(payload.runtimeId).toBeUndefined()
delete Session.defaultRuntimeId
})
Expand All @@ -34,12 +34,12 @@ describe('TcpCheck', () => {
})
Session.availableRuntimes = runtimes
Session.defaultRuntimeId = '2022.02'
const apiCheck = new TcpCheck('test-check', {
const check = new TcpCheck('test-check', {
name: 'Test Check',
runtimeId: '2022.02',
request,
})
const payload = apiCheck.synthesize()
const payload = check.synthesize()
expect(payload.runtimeId).toEqual('2022.02')
delete Session.defaultRuntimeId
})
Expand All @@ -50,12 +50,12 @@ describe('TcpCheck', () => {
repoUrl: 'https://github.com/checkly/checkly-cli',
})
Session.checkDefaults = { tags: ['default tags'] }
const apiCheck = new TcpCheck('test-check', {
const check = new TcpCheck('test-check', {
name: 'Test Check',
request,
})
delete Session.checkDefaults
expect(apiCheck).toMatchObject({ tags: ['default tags'] })
expect(check).toMatchObject({ tags: ['default tags'] })
})

it('should overwrite default check settings with check-specific config', () => {
Expand All @@ -64,13 +64,13 @@ describe('TcpCheck', () => {
repoUrl: 'https://github.com/checkly/checkly-cli',
})
Session.checkDefaults = { tags: ['default tags'] }
const apiCheck = new TcpCheck('test-check', {
const check = new TcpCheck('test-check', {
name: 'Test Check',
tags: ['test check'],
request,
})
delete Session.checkDefaults
expect(apiCheck).toMatchObject({ tags: ['test check'] })
expect(check).toMatchObject({ tags: ['test check'] })
})

it('should support setting groups with `groupId`', () => {
Expand Down

0 comments on commit 3319bdc

Please sign in to comment.