Skip to content

Commit e581cc6

Browse files
authored
Testing the right functions in testUtils (#3880)
1 parent 75114af commit e581cc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { expect } from 'chai';
22
import { describe, it } from 'mocha';
33

4-
import { expectEqualPromisesOrValues } from '../expectEqualPromisesOrValues.js';
4+
import { expectMatchingValues } from '../expectMatchingValues.js';
55

66
describe('expectMatchingValues', () => {
77
it('throws when given unequal values', () => {
8-
expect(() => expectEqualPromisesOrValues([{}, {}, { test: 'test' }])).throw(
8+
expect(() => expectMatchingValues([{}, {}, { test: 'test' }])).throw(
99
"expected { test: 'test' } to deeply equal {}",
1010
);
1111
});
1212

1313
it('does not throw when given equal values', () => {
1414
const testValue = { test: 'test' };
1515
expect(() =>
16-
expectEqualPromisesOrValues([testValue, testValue, testValue]),
16+
expectMatchingValues([testValue, testValue, testValue]),
1717
).not.to.throw();
1818
});
1919
});

0 commit comments

Comments
 (0)