@@ -4,36 +4,31 @@ import { displayDormantDeletion } from "./utils";
4
4
5
5
describe ( "displayDormantDeletion" , ( ) => {
6
6
const today = new Date ( ) ;
7
- it . each < [ string , boolean , boolean , boolean ] > ( [
7
+ it . each < [ string , boolean , boolean ] > ( [
8
8
[
9
9
new Date ( new Date ( ) . setDate ( today . getDate ( ) + 15 ) ) . toISOString ( ) ,
10
10
true ,
11
- true ,
12
11
false ,
13
12
] , // today + 15 days out
14
13
[
15
14
new Date ( new Date ( ) . setDate ( today . getDate ( ) + 14 ) ) . toISOString ( ) ,
16
15
true ,
17
16
true ,
18
- true ,
19
17
] , // today + 14
20
18
[
21
19
new Date ( new Date ( ) . setDate ( today . getDate ( ) + 13 ) ) . toISOString ( ) ,
22
20
true ,
23
21
true ,
24
- true ,
25
22
] , // today + 13
26
23
[
27
24
new Date ( new Date ( ) . setDate ( today . getDate ( ) + 1 ) ) . toISOString ( ) ,
28
25
true ,
29
26
true ,
30
- true ,
31
27
] , // 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
35
30
] ) (
36
- `deleting_at=%p, allowAdvancedScheduling=%p, AllowWorkspaceActions=%p, shouldDisplay=%p` ,
31
+ `deleting_at=%p, allowAdvancedScheduling=%p, shouldDisplay=%p` ,
37
32
( deleting_at , allowAdvancedScheduling , shouldDisplay ) => {
38
33
const workspace : TypesGen . Workspace = {
39
34
...Mocks . MockWorkspace ,
0 commit comments