Skip to content

Commit f92b930

Browse files
committed
chore: fix ci
1 parent b815ad3 commit f92b930

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/cloud_firestore/cloud_firestore/test/pipeline_expression_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,24 +750,24 @@ void main() {
750750

751751
test('timestampAddLiteral serializes correctly', () {
752752
final ts = Field('created');
753-
final expr = Expression.timestampAddLiteral(ts, 'days', 1);
753+
final expr = Expression.timestampAddLiteral(ts, 'day', 1);
754754
expect(expr.toMap(), {
755755
'name': 'timestamp_add',
756756
'args': {
757757
'timestamp': ts.toMap(),
758-
'unit': 'days',
758+
'unit': 'day',
759759
'amount': Constant(1).toMap(),
760760
},
761761
});
762762
});
763763

764764
test('timestampTruncate serializes correctly', () {
765-
final expr = Expression.timestampTruncate(Field('ts'), 'days');
765+
final expr = Expression.timestampTruncate(Field('ts'), 'day');
766766
expect(expr.toMap(), {
767767
'name': 'timestamp_truncate',
768768
'args': {
769769
'timestamp': Field('ts').toMap(),
770-
'unit': 'days',
770+
'unit': 'day',
771771
},
772772
});
773773
});

0 commit comments

Comments
 (0)