Skip to content

Commit ec8c134

Browse files
authored
Update tests for get-binding-details.test.js
1 parent 54253c7 commit ec8c134

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/commands/ip-allowlist/get-binding-details.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test('get-binding-details - not found', async () => {
3737

3838
mockSdk.listIpAllowlists = jest.fn(() => Promise.resolve([
3939
{
40-
id: '1',
40+
id: 1,
4141
name: 'test1',
4242
ipCidrSet: ['1.1.1.1/5', '2.2.2.2/5'],
4343
programId: '4',
@@ -55,7 +55,7 @@ test('get-binding-details - no bindings', async () => {
5555

5656
mockSdk.listIpAllowlists = jest.fn(() => Promise.resolve([
5757
{
58-
id: '1',
58+
id: 1,
5959
name: 'test1',
6060
ipCidrSet: ['1.1.1.1/5', '2.2.2.2/5'],
6161
programId: '4',
@@ -84,7 +84,7 @@ test('get-binding-details - normal with bindings', async () => {
8484

8585
mockSdk.listIpAllowlists = jest.fn(() => Promise.resolve([
8686
{
87-
id: '1',
87+
id: 1,
8888
name: 'test1',
8989
ipCidrSet: ['1.1.1.1/5', '2.2.2.2/5'],
9090
programId: '4',
@@ -98,7 +98,7 @@ test('get-binding-details - normal with bindings', async () => {
9898
const runResult = ListIPAllowlistBindingDetails.run(['--programId', '4', '1'])
9999
await expect(runResult instanceof Promise).toBeTruthy()
100100
await expect(runResult).resolves.toMatchObject({
101-
id: '1',
101+
id: 1,
102102
bindings: [{
103103
environmentId: '3',
104104
environmentName: 'TestProgram_dev',
@@ -114,7 +114,7 @@ test('get-binding-details - binding to unknown environment (should not ever happ
114114

115115
mockSdk.listIpAllowlists = jest.fn(() => Promise.resolve([
116116
{
117-
id: '1',
117+
id: 1,
118118
name: 'test1',
119119
ipCidrSet: ['1.1.1.1/5', '2.2.2.2/5'],
120120
programId: '4',
@@ -128,7 +128,7 @@ test('get-binding-details - binding to unknown environment (should not ever happ
128128
const runResult = ListIPAllowlistBindingDetails.run(['--programId', '4', '1'])
129129
await expect(runResult instanceof Promise).toBeTruthy()
130130
await expect(runResult).resolves.toMatchObject({
131-
id: '1',
131+
id: 1,
132132
bindings: [{
133133
environmentId: 'X',
134134
environmentName: 'Environment X',
@@ -144,7 +144,7 @@ test('get-binding-details - bindings when environment load fails', async () => {
144144

145145
mockSdk.listIpAllowlists = jest.fn(() => Promise.resolve([
146146
{
147-
id: '1',
147+
id: 1,
148148
name: 'test1',
149149
ipCidrSet: ['1.1.1.1/5', '2.2.2.2/5'],
150150
programId: '4',
@@ -159,7 +159,7 @@ test('get-binding-details - bindings when environment load fails', async () => {
159159
const runResult = ListIPAllowlistBindingDetails.run(['--programId', '4', '1'])
160160
await expect(runResult instanceof Promise).toBeTruthy()
161161
await expect(runResult).resolves.toMatchObject({
162-
id: '1',
162+
id: 1,
163163
bindings: [{
164164
environmentId: 'X',
165165
environmentName: 'Environment X',

0 commit comments

Comments
 (0)