@@ -657,7 +657,7 @@ describe('Class: SSMProvider', () => {
657
657
it ( 'returns parameters from cache when present' , async ( ) => {
658
658
// Prepare
659
659
const provider = new SSMProviderMock ( ) ;
660
- provider . getParametersByNameFromCache . mockResolvedValueOnce ( {
660
+ provider . getParametersByNameFromCache . mockReturnValueOnce ( {
661
661
cached : {
662
662
'/foo/bar' : 'bar' ,
663
663
'/foo/baz' : 'baz' ,
@@ -690,7 +690,7 @@ describe('Class: SSMProvider', () => {
690
690
it ( 'retrieves the parameters from remote when not present in the cache' , async ( ) => {
691
691
// Prepare
692
692
const provider = new SSMProviderMock ( ) ;
693
- provider . getParametersByNameFromCache . mockResolvedValueOnce ( {
693
+ provider . getParametersByNameFromCache . mockReturnValueOnce ( {
694
694
cached : { } ,
695
695
toFetch : {
696
696
'/foo/bar' : { } ,
@@ -738,7 +738,7 @@ describe('Class: SSMProvider', () => {
738
738
it ( 'retrieves the parameters not present in the cache and returns them, together with the cached ones' , async ( ) => {
739
739
// Prepare
740
740
const provider = new SSMProviderMock ( ) ;
741
- provider . getParametersByNameFromCache . mockResolvedValueOnce ( {
741
+ provider . getParametersByNameFromCache . mockReturnValueOnce ( {
742
742
cached : {
743
743
'/foo/bar' : 'bar' ,
744
744
} ,
@@ -792,12 +792,12 @@ describe('Class: SSMProvider', () => {
792
792
793
793
public getParametersByNameFromCache (
794
794
parameters : Record < string , SSMGetParametersByNameOptions >
795
- ) : Promise < SSMGetParametersByNameFromCacheOutputType > {
795
+ ) : SSMGetParametersByNameFromCacheOutputType {
796
796
return super . getParametersByNameFromCache ( parameters ) ;
797
797
}
798
798
}
799
799
800
- it ( 'returns an object with parameters split by cached and to fetch' , async ( ) => {
800
+ it ( 'returns an object with parameters split by cached and to fetch' , ( ) => {
801
801
// Prepare
802
802
const provider = new SSMProviderMock ( ) ;
803
803
const parameters = {
@@ -811,7 +811,7 @@ describe('Class: SSMProvider', () => {
811
811
812
812
// Act
813
813
const { cached, toFetch } =
814
- await provider . getParametersByNameFromCache ( parameters ) ;
814
+ provider . getParametersByNameFromCache ( parameters ) ;
815
815
816
816
// Assess
817
817
expect ( cached ) . toEqual ( {
0 commit comments