Skip to content

Commit 0e96c29

Browse files
committed
contrib: Update recently-simplified code sample
1 parent 93ab4dd commit 0e96c29

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contributing/Testing/Example Tests.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ it('allows signifier emojis as part of the description', () => {
2525
expect(task).not.toBeNull();
2626
expect(task!.description).toEqual('this is a ✅ done task');
2727
expect(task!.status).toStrictEqual(Status.DONE);
28-
expect(task!.dueDate).not.toBeNull();
29-
expect(task!.dueDate!.isSame(moment('2021-09-12', 'YYYY-MM-DD'))).toStrictEqual(true);
30-
expect(task!.doneDate).not.toBeNull();
31-
expect(task!.doneDate!.isSame(moment('2021-06-20', 'YYYY-MM-DD'))).toStrictEqual(true);
28+
expect(task!.dueDate).toEqualMoment(moment('2021-09-12'));
29+
expect(task!.doneDate).toEqualMoment(moment('2021-06-20'));
3230
});
3331
```
3432
<!-- endSnippet -->

0 commit comments

Comments
 (0)