Skip to content

Commit 6dd01c6

Browse files
committed
Add a test for isoWeek for timestampTruncate
1 parent 92a3e64 commit 6dd01c6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/firestore/test/lite/pipeline.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3916,7 +3916,8 @@ describe.skipClassic('Firestore Pipelines', () => {
39163916
timestampTruncate(field('timestamp'), 'day').as('truncDay'),
39173917
timestampTruncate(field('timestamp'), 'hour').as('truncHour'),
39183918
timestampTruncate(field('timestamp'), 'minute').as('truncMinute'),
3919-
timestampTruncate(field('timestamp'), 'second').as('truncSecond')
3919+
timestampTruncate(field('timestamp'), 'second').as('truncSecond'),
3920+
timestampTruncate(field('timestamp'), 'isoWeek').as('truncIsoWeek')
39203921
)
39213922
);
39223923

@@ -3926,7 +3927,8 @@ describe.skipClassic('Firestore Pipelines', () => {
39263927
truncDay: new Timestamp(1741392000, 0),
39273928
truncHour: new Timestamp(1741435200, 0),
39283929
truncMinute: new Timestamp(1741437240, 0),
3929-
truncSecond: new Timestamp(1741437296, 0)
3930+
truncSecond: new Timestamp(1741437296, 0),
3931+
truncIsoWeek: new Timestamp(1740960000, 0)
39303932
});
39313933
}).timeout(10000);
39323934

0 commit comments

Comments
 (0)