Skip to content

Commit 0602829

Browse files
committed
a test
1 parent 27b0874 commit 0602829

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

site/src/components/WorkspaceDeletion/utils.test.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,31 @@ import { displayDormantDeletion } from "./utils";
44

55
describe("displayDormantDeletion", () => {
66
const today = new Date();
7-
it.each<[string, boolean, boolean, boolean]>([
7+
it.each<[string, boolean, boolean]>([
88
[
99
new Date(new Date().setDate(today.getDate() + 15)).toISOString(),
1010
true,
11-
true,
1211
false,
1312
], // today + 15 days out
1413
[
1514
new Date(new Date().setDate(today.getDate() + 14)).toISOString(),
1615
true,
1716
true,
18-
true,
1917
], // today + 14
2018
[
2119
new Date(new Date().setDate(today.getDate() + 13)).toISOString(),
2220
true,
2321
true,
24-
true,
2522
], // today + 13
2623
[
2724
new Date(new Date().setDate(today.getDate() + 1)).toISOString(),
2825
true,
2926
true,
30-
true,
3127
], // today + 1
32-
[new Date().toISOString(), true, true, true], // today + 0
33-
[new Date().toISOString(), false, true, false], // Advanced Scheduling off
34-
[new Date().toISOString(), true, false, false], // Workspace Actions off
28+
[new Date().toISOString(), true, true], // today + 0
29+
[new Date().toISOString(), false, false], // Advanced Scheduling off
3530
])(
36-
`deleting_at=%p, allowAdvancedScheduling=%p, AllowWorkspaceActions=%p, shouldDisplay=%p`,
31+
`deleting_at=%p, allowAdvancedScheduling=%p, shouldDisplay=%p`,
3732
(deleting_at, allowAdvancedScheduling, shouldDisplay) => {
3833
const workspace: TypesGen.Workspace = {
3934
...Mocks.MockWorkspace,

0 commit comments

Comments
 (0)