File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
test/project/ws-backlog-page Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class TaskDto {
10
10
actualTime : number | null ;
11
11
status : TaskStatus ;
12
12
assignedMemberId : number | null ;
13
+ rankValue : string ;
13
14
14
15
static of ( task : Task ) : TaskDto {
15
16
const dto = new TaskDto ( ) ;
@@ -20,6 +21,7 @@ class TaskDto {
20
21
dto . actualTime = task . actualTime ;
21
22
dto . status = task . status ;
22
23
dto . assignedMemberId = task . assignedMemberId ;
24
+ dto . rankValue = task . rankValue ;
23
25
return dto ;
24
26
}
25
27
}
@@ -29,6 +31,7 @@ class StoryDto {
29
31
title : string ;
30
32
point : number | null ;
31
33
status : StoryStatus ;
34
+ rankValue : string ;
32
35
taskList : TaskDto [ ] ;
33
36
34
37
static of ( story : Story ) : StoryDto {
@@ -37,6 +40,7 @@ class StoryDto {
37
40
dto . title = story . title ;
38
41
dto . point = story . point ;
39
42
dto . status = story . status ;
43
+ dto . rankValue = story . rankValue ;
40
44
dto . taskList = story . taskList . map ( TaskDto . of ) ;
41
45
return dto ;
42
46
}
@@ -46,13 +50,15 @@ class EpicDto {
46
50
id : number ;
47
51
name : string ;
48
52
color : EpicColor ;
53
+ rankValue : string ;
49
54
storyList : StoryDto [ ] ;
50
55
51
56
static of ( epic : Epic ) : EpicDto {
52
57
const dto = new EpicDto ( ) ;
53
58
dto . id = epic . id ;
54
59
dto . name = epic . name ;
55
60
dto . color = epic . color ;
61
+ dto . rankValue = epic . rankValue ;
56
62
dto . storyList = epic . storyList . map ( StoryDto . of ) ;
57
63
return dto ;
58
64
}
Original file line number Diff line number Diff line change @@ -75,12 +75,16 @@ describe('WS epic', () => {
75
75
expect ( epic . id ) . toBe ( epicId ) ;
76
76
expect ( epic . name ) . toBe ( epicName ) ;
77
77
expect ( epic . color ) . toBe ( epicColor ) ;
78
+ expect ( epic . rankValue ) . toBe ( middleRankValue ) ;
79
+
78
80
expect ( epic . storyList ) . toHaveLength ( 1 ) ;
79
81
const story = epic . storyList [ 0 ] ;
80
82
expect ( story . id ) . toBe ( storyId ) ;
81
83
expect ( story . title ) . toBe ( storyTitle ) ;
82
84
expect ( story . point ) . toBe ( storyPoint ) ;
83
85
expect ( story . status ) . toBe ( storyStatus ) ;
86
+ expect ( story . rankValue ) . toBe ( middleRankValue ) ;
87
+
84
88
expect ( story . taskList ) . toHaveLength ( 1 ) ;
85
89
const task = story . taskList [ 0 ] ;
86
90
expect ( task . id ) . toBe ( taskId ) ;
@@ -90,6 +94,7 @@ describe('WS epic', () => {
90
94
expect ( task . actualTime ) . toBe ( taskActualTime ) ;
91
95
expect ( task . status ) . toBe ( taskStatus ) ;
92
96
expect ( task . assignedMemberId ) . toBe ( taskAssignedMemberId ) ;
97
+ expect ( task . rankValue ) . toBe ( middleRankValue ) ;
93
98
} catch ( e ) {
94
99
reject ( e ) ;
95
100
}
You can’t perform that action at this time.
0 commit comments