@@ -4,7 +4,7 @@ const { expect } = chai;
4
4
5
5
import {
6
6
createOooStatusRequestValidator ,
7
- acknowledgeOooRequestsValidator ,
7
+ acknowledgeOooRequest ,
8
8
} from "./../../../middlewares/validators/oooRequests" ;
9
9
import { testAcknowledgeOooRequest , validOooStatusRequests , validOooStatusUpdate } from "../../fixtures/oooRequest/oooRequest" ;
10
10
import _ from "lodash" ;
@@ -97,7 +97,7 @@ describe("OOO Status Request Validators", function () {
97
97
body : { ...testAcknowledgeOooRequest , type : "XYZ" }
98
98
} ;
99
99
100
- await acknowledgeOooRequestsValidator ( req , res , nextSpy ) ;
100
+ await acknowledgeOooRequest ( req , res , nextSpy ) ;
101
101
expect ( nextSpy . notCalled ) . to . be . true ;
102
102
} ) ;
103
103
@@ -106,7 +106,7 @@ describe("OOO Status Request Validators", function () {
106
106
body : { ...testAcknowledgeOooRequest , status : "PENDING" }
107
107
} ;
108
108
109
- await acknowledgeOooRequestsValidator ( req , res , nextSpy ) ;
109
+ await acknowledgeOooRequest ( req , res , nextSpy ) ;
110
110
expect ( nextSpy . notCalled ) . to . be . true ;
111
111
} ) ;
112
112
@@ -115,7 +115,7 @@ describe("OOO Status Request Validators", function () {
115
115
body : _ . omit ( testAcknowledgeOooRequest , "comment" )
116
116
} ;
117
117
res = { } ;
118
- await acknowledgeOooRequestsValidator ( req , res , nextSpy ) ;
118
+ await acknowledgeOooRequest ( req , res , nextSpy ) ;
119
119
expect ( nextSpy . calledOnce ) . to . be . true ;
120
120
} ) ;
121
121
@@ -124,7 +124,7 @@ describe("OOO Status Request Validators", function () {
124
124
body : testAcknowledgeOooRequest
125
125
} ;
126
126
res = { } ;
127
- await acknowledgeOooRequestsValidator ( req , res , nextSpy ) ;
127
+ await acknowledgeOooRequest ( req , res , nextSpy ) ;
128
128
expect ( nextSpy . calledOnce ) . to . be . true ;
129
129
} ) ;
130
130
} ) ;
0 commit comments