Skip to content

Commit b0daae1

Browse files
committed
refactor: update test for stringReplaceAll serialization
1 parent 1dc27b2 commit b0daae1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/cloud_firestore/cloud_firestore/test/pipeline_expression_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,11 @@ void main() {
495495
});
496496
});
497497

498-
test('replace serializes correctly', () {
499-
final expr = Field('s').replace(Constant('old'), Constant('new'));
498+
test('stringReplaceAll serializes correctly', () {
499+
final expr =
500+
Field('s').stringReplaceAll(Constant('old'), Constant('new'));
500501
expect(expr.toMap(), {
501-
'name': 'replace',
502+
'name': 'string_replace_all',
502503
'args': {
503504
'expression': Field('s').toMap(),
504505
'find': Constant('old').toMap(),

0 commit comments

Comments
 (0)