Skip to content

Commit 7f21cea

Browse files
Fix
1 parent f3cd588 commit 7f21cea

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/blocks/aws-athena/test/athena-query-action.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('runAthenaQueryAction tests', () => {
7676
...jest.requireActual('@openops/blocks-framework'),
7777
auth: auth,
7878
propsValue: {
79-
accounts: { accounts: ['some-account-id'] },
79+
accounts: { accounts: 'some-account-id' },
8080
query: 'some query',
8181
database: 'some database',
8282
outputBucket: 'some outputBucket',
@@ -90,7 +90,7 @@ describe('runAthenaQueryAction tests', () => {
9090
expect(openopsCommonMock.getCredentialsForAccount).toHaveBeenCalledTimes(1);
9191
expect(openopsCommonMock.getCredentialsForAccount).toHaveBeenCalledWith(
9292
auth,
93-
['some-account-id'],
93+
'some-account-id',
9494
);
9595
});
9696

@@ -136,7 +136,6 @@ describe('runAthenaQueryAction tests', () => {
136136
...jest.requireActual('@openops/blocks-framework'),
137137
auth: auth,
138138
propsValue: {
139-
accounts: { accounts: ['some-account-id'] },
140139
region: 'some region',
141140
query: 'some query',
142141
database: 'some database',
@@ -159,7 +158,7 @@ describe('runAthenaQueryAction tests', () => {
159158
expect(openopsCommonMock.getCredentialsForAccount).toHaveBeenCalledTimes(1);
160159
expect(openopsCommonMock.getCredentialsForAccount).toHaveBeenCalledWith(
161160
auth,
162-
['some-account-id'],
161+
undefined,
163162
);
164163
});
165164

0 commit comments

Comments
 (0)