Skip to content

Commit fa71f7b

Browse files
committed
test: drop unnecessary type casts in api-key-import-existing (review)
1 parent c1ab55f commit fa71f7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/api-key-import-existing.e2e.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('examples/api-key-import-existing', () => {
2525
const keys = findResourcesByType(result.template, 'AWS::AppSync::ApiKey');
2626
const stable = keys.find(
2727
(k) =>
28-
(k.resource.Properties?.Description as string) ===
28+
k.resource.Properties?.Description ===
2929
'Stable key migrated from previous infrastructure',
3030
);
3131
if (!stable) throw new Error('stable api key not found');
@@ -38,7 +38,7 @@ describe('examples/api-key-import-existing', () => {
3838
const keys = findResourcesByType(result.template, 'AWS::AppSync::ApiKey');
3939
const rotating = keys.find(
4040
(k) =>
41-
(k.resource.Properties?.Description as string) ===
41+
k.resource.Properties?.Description ===
4242
'Net-new key created by this stack',
4343
);
4444
if (!rotating) throw new Error('rotating api key not found');

0 commit comments

Comments
 (0)