@@ -97,8 +97,8 @@ describe('Per Resource Events Protocol', function () {
9797 expect ( notification . published ) . to . match ( dateTimeRegex )
9898 expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
9999 expect ( notification . type ) . to . equal ( 'Add' )
100- expect ( notification . target ) . to . match ( / s a m p l e C o n t a i n e r \/ e x a m p l e - p r e p \. t t l $ / )
101- expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
100+ expect ( notification . target ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
101+ expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ e x a m p l e - p r e p \. t t l $ / )
102102 } )
103103
104104 it ( 'when contained resource is modified' , async function ( ) {
@@ -131,8 +131,8 @@ solid:inserts { <u> <v> <z>. }.`
131131 expect ( notification . published ) . to . match ( dateTimeRegex )
132132 expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
133133 expect ( notification . type ) . to . equal ( 'Remove' )
134- expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
135- expect ( notification . origin ) . to . match ( / s a m p l e C o n t a i n e r \/ .* e x a m p l e - p r e p .t t l $ / )
134+ expect ( notification . origin ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
135+ expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ .* e x a m p l e - p r e p .t t l $ / )
136136 } )
137137
138138 it ( 'when a contained container is created' , async function ( ) {
@@ -148,8 +148,8 @@ solid:inserts { <u> <v> <z>. }.`
148148 expect ( notification . published ) . to . match ( dateTimeRegex )
149149 expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
150150 expect ( notification . type ) . to . equal ( 'Add' )
151- expect ( notification . target ) . to . match ( / s a m p l e C o n t a i n e r \/ e x a m p l e - p r e p \/ $ / )
152- expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
151+ expect ( notification . target ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
152+ expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ e x a m p l e - p r e p \/ $ / )
153153 } )
154154
155155 it ( 'when a contained container is deleted' , async function ( ) {
@@ -162,8 +162,8 @@ solid:inserts { <u> <v> <z>. }.`
162162 expect ( notification . published ) . to . match ( dateTimeRegex )
163163 expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
164164 expect ( notification . type ) . to . equal ( 'Remove' )
165- expect ( notification . origin ) . to . match ( / s a m p l e C o n t a i n e r \/ e x a m p l e - p r e p \/ $ / )
166- expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
165+ expect ( notification . origin ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
166+ expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ e x a m p l e - p r e p \/ $ / )
167167 } )
168168
169169 it ( 'when a container is created by POST' ,
@@ -182,8 +182,8 @@ solid:inserts { <u> <v> <z>. }.`
182182 expect ( notification . published ) . to . match ( dateTimeRegex )
183183 expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
184184 expect ( notification . type ) . to . equal ( 'Add' )
185- expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
186- expect ( notification . target ) . to . match ( / s a m p l e C o n t a i n e r \/ .* e x a m p l e - p o s t \/ $ / )
185+ expect ( notification . target ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
186+ expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ .* e x a m p l e - p o s t \/ $ / )
187187 } )
188188
189189 it ( 'when resource is created by POST' ,
@@ -202,8 +202,8 @@ solid:inserts { <u> <v> <z>. }.`
202202 expect ( notification . published ) . to . match ( dateTimeRegex )
203203 expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
204204 expect ( notification . type ) . to . equal ( 'Add' )
205- expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
206- expect ( notification . target ) . to . match ( / s a m p l e C o n t a i n e r \/ .* e x a m p l e - p r e p .t t l $ / )
205+ expect ( notification . target ) . to . match ( / s a m p l e C o n t a i n e r \/ $ / )
206+ expect ( notification . object ) . to . match ( / s a m p l e C o n t a i n e r \/ .* e x a m p l e - p r e p .t t l $ / )
207207 controller . abort ( )
208208 } )
209209 } )
0 commit comments