Skip to content

Commit 0c44ba8

Browse files
committed
update unit test with locationTypes as a set
Issue: CLDSRV-845
1 parent 786a725 commit 0c44ba8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/utils/reportHandler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,13 @@ describe('reportHandler.getCapabilities', () => {
225225
locationTypeCephRadosGW: true,
226226
locationTypeHyperdriveV2: true,
227227
locationTypeLocal: true,
228-
locationTypes: [
228+
locationTypes: new Set([
229229
'location-gcp-v1',
230230
'location-scality-sproxyd-v1',
231231
'location-ceph-radosgw-s3-v1',
232232
'location-file-v1',
233233
'location-scality-artesca-s3-v1',
234-
],
234+
]),
235235
},
236236
supportedLifecycleRules: ['Expiration'],
237237
};
@@ -258,7 +258,7 @@ describe('reportHandler.getCapabilities', () => {
258258
managedLifecycleTransition: true,
259259
locationTypeAzure: true,
260260
locationTypeGCP: true,
261-
locationTypes: ['location-azure-v1'],
261+
locationTypes: new Set(['location-azure-v1']),
262262
},
263263
supportedLifecycleRules: ['Expiration'], // Missing Transition
264264
};

0 commit comments

Comments
 (0)