Skip to content

Commit d3351a6

Browse files
author
Zhen Li
committed
Make an example test not care about the order of elements returned
1 parent ad0317a commit d3351a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/examples.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@ describe('#integration examples', () => {
650650
// end::async-transaction-function[]
651651

652652
expect(titles.length).toEqual(2)
653-
expect(titles[0]).toEqual('Infinity Gauntlet')
654-
expect(titles[1]).toEqual('Mjölnir')
653+
expect(titles.includes('Infinity Gauntlet')).toBeTruthy()
654+
expect(titles.includes('Mjölnir')).toBeTruthy()
655655
})
656656

657657
it('rx transaction function example', async () => {

0 commit comments

Comments
 (0)