@@ -31,9 +31,6 @@ const TEST_NAME_1 = 'test/secret1';
3131const VALID_ARN_2 = 'arn:aws:secretsmanager:ap-south-1:123456789000:secret:test2-aBcdef' ;
3232const TEST_NAME_2 = 'test/secret2' ;
3333
34- const NOT_MATCHING_ARN_3 = 'arn:aws:secretsmanager:us-east-1:123456789000:secret:alternativeSecret-aBcdef' ;
35- const NOT_MATCHING_TEST = 'alternativeSecret' ;
36-
3734const INVALID_ARN = 'aws:secretsmanager:us-east-1:123456789000:secret:test3-aBcdef' ;
3835
3936jest . mock ( '@actions/core' ) ;
@@ -87,7 +84,7 @@ describe('Test secret value retrieval', () => {
8784 } ) ;
8885
8986 test ( 'Throws an error if unable to retrieve the secret' , async ( ) => {
90- const error = new ResourceNotFoundException ( { $metadata : { } as any , Message : 'Error' } ) ;
87+ const error = new ResourceNotFoundException ( { $metadata : { } , message : 'Error' } ) ;
9188 smMockClient . on ( GetSecretValueCommand ) . rejects ( error ) ;
9289 await expect ( getSecretValue ( smClient , TEST_NAME ) ) . rejects . toThrow ( error ) ;
9390 } ) ;
@@ -177,7 +174,7 @@ describe('Test secret value retrieval', () => {
177174 } ) ;
178175
179176 test ( 'Throws an error if a prefix filter returns too many results' , async ( ) => {
180- let input = [ "too/many/matches/*" ] ;
177+ const input = [ "too/many/matches/*" ] ;
181178 const expectedParams = {
182179 Filters : [
183180 {
@@ -210,7 +207,7 @@ describe('Test secret value retrieval', () => {
210207 } ) ;
211208
212209 test ( 'Throws an error if a prefix filter has no results' , async ( ) => {
213- let input = [ "no/matches/*" ] ;
210+ const input = [ "no/matches/*" ] ;
214211 const expectedParams = {
215212 Filters : [
216213 {
@@ -233,7 +230,7 @@ describe('Test secret value retrieval', () => {
233230 } ) ;
234231
235232 test ( 'Throws an error if a prefix filter with an alias returns more than 1 result' , async ( ) => {
236- let input = [ "SECRET_ALIAS,test/*" ] ;
233+ const input = [ "SECRET_ALIAS,test/*" ] ;
237234 const expectedParams = {
238235 Filters : [
239236 {
0 commit comments