File tree 1 file changed +2
-2
lines changed
packages/http/fetch/test/common
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ describe("FetchRequestAdapter.ts", () => {
152
152
const requestInformation = new RequestInformation ( ) ;
153
153
requestInformation . URL = "https://www.example.com" ;
154
154
requestInformation . httpMethod = HttpMethod . GET ;
155
- const result = await requestAdapter . sendEnum ( requestInformation , TestEnumObject , undefined ) ;
155
+ const result : TestEnum | undefined = await requestAdapter . sendEnum ( requestInformation , TestEnumObject , undefined ) ;
156
156
assert . isDefined ( result ) ;
157
157
assert . equal ( result , TestEnumObject . A ) ;
158
158
} ) ;
@@ -175,7 +175,7 @@ describe("FetchRequestAdapter.ts", () => {
175
175
const requestInformation = new RequestInformation ( ) ;
176
176
requestInformation . URL = "https://www.example.com" ;
177
177
requestInformation . httpMethod = HttpMethod . GET ;
178
- const result = await requestAdapter . sendCollectionOfEnum ( requestInformation , TestEnumObject , undefined ) ;
178
+ const result : TestEnum [ ] | undefined = await requestAdapter . sendCollectionOfEnum ( requestInformation , TestEnumObject , undefined ) ;
179
179
assert . isDefined ( result ) ;
180
180
assert . equal ( result ?. length , 3 ) ;
181
181
assert . equal ( result ! [ 0 ] , TestEnumObject . A ) ;
You can’t perform that action at this time.
0 commit comments