File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/data-connect/test/unit Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,11 @@ describe('fetch', () => {
92
92
} ;
93
93
const fakeFetchImpl = mockFetch ( json , false ) ;
94
94
95
- const callerSdkTypesUsed : string [ ] = [ ] ;
96
-
97
95
for ( const callerSdkType in CallerSdkTypeEnum ) {
96
+ // this check is done to follow the best practices outlined by the "guard-for-in" eslint rule
98
97
if (
99
98
Object . prototype . hasOwnProperty . call ( CallerSdkTypeEnum , callerSdkType )
100
99
) {
101
- callerSdkTypesUsed . push ( callerSdkType ) ;
102
100
await dcFetch (
103
101
'http://localhost' ,
104
102
{
@@ -143,6 +141,7 @@ describe('fetch', () => {
143
141
const fakeFetchImpl = mockFetch ( json , false ) ;
144
142
145
143
for ( const callerSdkType in CallerSdkTypeEnum ) {
144
+ // this check is done to follow the best practices outlined by the "guard-for-in" eslint rule
146
145
if (
147
146
Object . prototype . hasOwnProperty . call ( CallerSdkTypeEnum , callerSdkType )
148
147
) {
You can’t perform that action at this time.
0 commit comments