Skip to content

Commit 70ba956

Browse files
Scra3Thenkei
authored andcommitted
fix: ok
Co-authored-by: Morgan PERRE <morganperre@gmail.com>
1 parent 59dc21b commit 70ba956

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

packages/datasource-customizer/test/decorators/operators-emulate/collection.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,10 @@ describe('OperatorsEmulateCollectionDecorator', () => {
157157
});
158158
});
159159

160-
describe('when given null handler value for replaceFieldOperator', () => {
161-
test('should crash', async () => {
162-
expect(() => newBooks.replaceFieldOperator('title', 'StartsWith', null)).toThrow(
163-
'replaceBy handler is required',
164-
);
165-
});
160+
test('replaceFieldOperator() should throw if no handler is given', () => {
161+
expect(() => newBooks.replaceFieldOperator('title', 'StartsWith', null)).toThrow(
162+
'replaceBy handler is required',
163+
);
166164
});
167165

168166
describe('when creating a cycle in the replacements graph', () => {

0 commit comments

Comments
 (0)