@@ -97,8 +97,8 @@ describe('Per Resource Events Protocol', function () {
97
97
expect ( notification . published ) . to . match ( dateTimeRegex )
98
98
expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
99
99
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 $ / )
102
102
} )
103
103
104
104
it ( 'when contained resource is modified' , async function ( ) {
@@ -131,8 +131,8 @@ solid:inserts { <u> <v> <z>. }.`
131
131
expect ( notification . published ) . to . match ( dateTimeRegex )
132
132
expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
133
133
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 $ / )
136
136
} )
137
137
138
138
it ( 'when a contained container is created' , async function ( ) {
@@ -148,8 +148,8 @@ solid:inserts { <u> <v> <z>. }.`
148
148
expect ( notification . published ) . to . match ( dateTimeRegex )
149
149
expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
150
150
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 \/ $ / )
153
153
} )
154
154
155
155
it ( 'when a contained container is deleted' , async function ( ) {
@@ -162,8 +162,8 @@ solid:inserts { <u> <v> <z>. }.`
162
162
expect ( notification . published ) . to . match ( dateTimeRegex )
163
163
expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
164
164
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 \/ $ / )
167
167
} )
168
168
169
169
it ( 'when a container is created by POST' ,
@@ -182,8 +182,8 @@ solid:inserts { <u> <v> <z>. }.`
182
182
expect ( notification . published ) . to . match ( dateTimeRegex )
183
183
expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
184
184
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 \/ $ / )
187
187
} )
188
188
189
189
it ( 'when resource is created by POST' ,
@@ -202,8 +202,8 @@ solid:inserts { <u> <v> <z>. }.`
202
202
expect ( notification . published ) . to . match ( dateTimeRegex )
203
203
expect ( isNaN ( ( new Date ( notification . published ) ) . valueOf ( ) ) ) . to . equal ( false )
204
204
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 $ / )
207
207
controller . abort ( )
208
208
} )
209
209
} )
0 commit comments