@@ -106,10 +106,10 @@ describe('FiatRampService', () => {
106106
107107 it ( `should return widget url with non-configurable query params when onRampProvider is Transak' +
108108 'and default to IMX` , async ( ) => {
109- const params : FiatRampWidgetParams = {
109+ const params = {
110110 exchangeType : ExchangeType . ONRAMP ,
111111 isPassport : false ,
112- } ;
112+ } as FiatRampWidgetParams ;
113113 const result = await fiatRampService . createWidgetUrl ( params , mockedHttpClient ) ;
114114 expect ( result ) . toContain ( 'https://global-stg.transak.com' ) ;
115115 expect ( mockedHttpClient . post ) . toHaveBeenCalledWith (
@@ -123,11 +123,11 @@ describe('FiatRampService', () => {
123123
124124 it ( `should return widget url with encoded email, isAutoFillUserData and disableWalletAddressForm query params
125125 for passport users` , async ( ) => {
126- const params : FiatRampWidgetParams = {
126+ const params = {
127127 exchangeType : ExchangeType . ONRAMP ,
128128 isPassport : true ,
129129130- } ;
130+ } as FiatRampWidgetParams ;
131131 const result = await fiatRampService . createWidgetUrl ( params , mockedHttpClient ) ;
132132 expect ( result ) . toContain ( 'https://global-stg.transak.com' ) ;
133133 expect ( mockedHttpClient . post ) . toHaveBeenCalledWith (
@@ -143,10 +143,10 @@ describe('FiatRampService', () => {
143143
144144 it ( `should return widget url with defaultFiatAmount and defaultCryptoCurrency query params when tokenAmount and
145145 tokenSymbol are not present` , async ( ) => {
146- const params : FiatRampWidgetParams = {
146+ const params = {
147147 exchangeType : ExchangeType . ONRAMP ,
148148 isPassport : false ,
149- } ;
149+ } as FiatRampWidgetParams ;
150150 const result = await fiatRampService . createWidgetUrl ( params , mockedHttpClient ) ;
151151 expect ( result ) . toContain ( 'https://global-stg.transak.com' ) ;
152152 expect ( mockedHttpClient . post ) . toHaveBeenCalledWith (
@@ -161,12 +161,12 @@ describe('FiatRampService', () => {
161161
162162 it ( `should return widget url with defaultCryptoAmount and cryptoCurrencyCode query params when tokenAmount and
163163 tokenSymbol is present` , async ( ) => {
164- const params : FiatRampWidgetParams = {
164+ const params = {
165165 exchangeType : ExchangeType . ONRAMP ,
166166 isPassport : false ,
167167 tokenAmount : '100' ,
168168 tokenSymbol : 'ETH' ,
169- } ;
169+ } as FiatRampWidgetParams ;
170170 const result = await fiatRampService . createWidgetUrl ( params , mockedHttpClient ) ;
171171 expect ( result ) . toContain ( 'https://global-stg.transak.com' ) ;
172172 expect ( mockedHttpClient . post ) . toHaveBeenCalledWith (
@@ -180,11 +180,11 @@ describe('FiatRampService', () => {
180180 } ) ;
181181
182182 it ( 'should return widget url with walletAddress query params when walletAddress is present' , async ( ) => {
183- const params : FiatRampWidgetParams = {
183+ const params = {
184184 exchangeType : ExchangeType . ONRAMP ,
185185 isPassport : false ,
186186 walletAddress : '0x1234567890' ,
187- } ;
187+ } as FiatRampWidgetParams ;
188188 const result = await fiatRampService . createWidgetUrl ( params , mockedHttpClient ) ;
189189 expect ( result ) . toContain ( 'https://global-stg.transak.com' ) ;
190190 expect ( mockedHttpClient . post ) . toHaveBeenCalledWith (
@@ -197,11 +197,11 @@ describe('FiatRampService', () => {
197197 } ) ;
198198
199199 it ( 'should return widget url with allowed crypto tokens in query params when allowed list is present' , async ( ) => {
200- const params : FiatRampWidgetParams = {
200+ const params = {
201201 exchangeType : ExchangeType . ONRAMP ,
202202 isPassport : false ,
203203 allowedTokens : [ 'ETH' , 'IMX' ] ,
204- } ;
204+ } as FiatRampWidgetParams ;
205205 const result = await fiatRampService . createWidgetUrl ( params , mockedHttpClient ) ;
206206 expect ( result ) . toContain ( 'https://global-stg.transak.com' ) ;
207207 expect ( mockedHttpClient . post ) . toHaveBeenCalledWith (
0 commit comments