Skip to content

Commit 5cb432a

Browse files
committed
fix test assertion
1 parent a6df2e2 commit 5cb432a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

test/functional/datasets/GetDatasetAvailableDatasetTypes.test.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ describe('getDatasetAvailableDatasetTypes', () => {
1414

1515
test('should return available dataset types', async () => {
1616
const actualDatasetTypes: DatasetType[] = await getDatasetAvailableDatasetTypes.execute()
17-
const expectedDatasetTypes = [
18-
{
19-
id: 1,
20-
name: 'dataset',
21-
linkedMetadataBlocks: [],
22-
availableLicenses: []
23-
}
24-
]
17+
const expectedDatasetTypes = {
18+
id: 1,
19+
name: 'dataset',
20+
linkedMetadataBlocks: [],
21+
availableLicenses: []
22+
}
23+
2524
// check that the actual dataset types include the expected dataset types
2625
// (without requiring an exact match, since other dataset types may be created by concurrent tests)
27-
expect(actualDatasetTypes).toContain(expectedDatasetTypes)
26+
expect(actualDatasetTypes).toContainEqual(expectedDatasetTypes)
2827
})
2928
})
3029
})

0 commit comments

Comments
 (0)