1
+ import { v4 as uuidv4 } from 'uuid'
1
2
import * as project from '../../../support/project-helpers'
2
3
3
4
describe ( 'Questionnaire WebSocket Tests' , ( ) => {
@@ -37,7 +38,7 @@ describe('Questionnaire WebSocket Tests', () => {
37
38
type : 'SetContent_ClientQuestionnaireAction' ,
38
39
data : {
39
40
type : 'SetReplyEvent' ,
40
- uuid : '62e950ca-0cc5-4a78-9389-31f7494fc88c' ,
41
+ uuid : uuidv4 ( ) ,
41
42
path : '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.57aeb801-e56e-4039-bf8c-82acae654e2b' ,
42
43
value : {
43
44
type : 'StringReply' ,
@@ -62,7 +63,7 @@ describe('Questionnaire WebSocket Tests', () => {
62
63
type : 'SetContent_ClientQuestionnaireAction' ,
63
64
data : {
64
65
type : 'SetReplyEvent' ,
65
- uuid : '62e950ca-0cc5-4a78-9389-31f7494fc88c' ,
66
+ uuid : uuidv4 ( ) ,
66
67
path : '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.4ae3425e-31a3-475d-a201-3f12f0b69574' ,
67
68
value : {
68
69
type : 'AnswerReply' ,
@@ -86,7 +87,7 @@ describe('Questionnaire WebSocket Tests', () => {
86
87
type : 'SetContent_ClientQuestionnaireAction' ,
87
88
data : {
88
89
type : 'SetReplyEvent' ,
89
- uuid : '62e950ca-0cc5-4a78-9389-31f7494fc88c' ,
90
+ uuid : uuidv4 ( ) ,
90
91
path : '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.5aea9458-6cfb-48db-8ed8-1d4d99b8076d' ,
91
92
value : {
92
93
type : 'ItemListReply' ,
@@ -112,7 +113,7 @@ describe('Questionnaire WebSocket Tests', () => {
112
113
type : 'SetContent_ClientQuestionnaireAction' ,
113
114
data : {
114
115
type : 'ClearReplyEvent' ,
115
- uuid : '62e950ca-0cc5-4a78-9389-31f7494fc88c' ,
116
+ uuid : uuidv4 ( ) ,
116
117
path : '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.4ae3425e-31a3-475d-a201-3f12f0b69574' ,
117
118
phasesAnsweredIndication : {
118
119
answeredQuestions : 0 ,
@@ -134,7 +135,7 @@ describe('Questionnaire WebSocket Tests', () => {
134
135
type : 'SetContent_ClientQuestionnaireAction' ,
135
136
data : {
136
137
type : 'SetPhaseEvent' ,
137
- uuid : '62e950ca-0cc5-4a78-9389-31f7494fc88c' ,
138
+ uuid : uuidv4 ( ) ,
138
139
phaseUuid,
139
140
phasesAnsweredIndication : {
140
141
answeredQuestions : 0 ,
@@ -154,7 +155,7 @@ describe('Questionnaire WebSocket Tests', () => {
154
155
type : 'SetContent_ClientQuestionnaireAction' ,
155
156
data : {
156
157
type : 'SetLabelsEvent' ,
157
- uuid : '62e950ca-0cc5-4a78-9389-31f7494fc88c' ,
158
+ uuid : uuidv4 ( ) ,
158
159
path : '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.4ae3425e-31a3-475d-a201-3f12f0b69574' ,
159
160
value
160
161
}
0 commit comments