Skip to content

Commit 18f9ee7

Browse files
committed
test: improve tests to use date
1 parent d75da1c commit 18f9ee7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vault/domain/vault.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ describe('Vault', () => {
9999
categoryId: category1.id,
100100
createdAt: new Date('2023-05-15'),
101101
type: 'expense',
102+
date: new Date('2023-05-15'),
102103
}),
103104
);
104105
vault.addTransaction(
@@ -110,6 +111,7 @@ describe('Vault', () => {
110111
isCommitted: false,
111112
categoryId: category1.id,
112113
createdAt: new Date('2023-05-20'),
114+
date: new Date('2023-05-20'),
113115
type: 'expense',
114116
}),
115117
);
@@ -123,6 +125,7 @@ describe('Vault', () => {
123125
categoryId: category2.id,
124126
createdAt: new Date('2023-05-02'),
125127
type: 'expense',
128+
date: new Date('2023-05-20'),
126129
}),
127130
);
128131
vault.addTransaction(
@@ -134,6 +137,7 @@ describe('Vault', () => {
134137
isCommitted: false,
135138
categoryId: category2.id,
136139
createdAt: new Date('2023-06-05'),
140+
date: new Date('2023-06-05'),
137141
type: 'expense',
138142
}),
139143
);

0 commit comments

Comments
 (0)