Skip to content

Commit 85ded1b

Browse files
committed
test: use a distinct source string that resolves to an equal PlainDate
Addresses review feedback on #650: the equal-PlainDate test now sets a different string that still resolves to the same PlainDate, so it exercises value-equality rather than raw-string identity.
1 parent 2d3fd0f commit 85ded1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/computed.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ describe('Computed', () => {
302302

303303
expect(handler).toHaveBeenCalledTimes(1);
304304

305-
// Setting to a string that resolves to an equal PlainDate should not re-notify.
306-
source$.set('2024-01-15');
305+
// Setting to a different string that resolves to an equal PlainDate should not re-notify.
306+
source$.set('2024-01-15T10:30:00');
307307

308308
expect(handler).toHaveBeenCalledTimes(1);
309309
});

0 commit comments

Comments
 (0)