@@ -29,7 +29,7 @@ describe('@hydrofoil/talos', function () {
2929
3030 const ns = $rdf . namespace ( base + '/' )
3131
32- describe ( '@hydrofoil/talos/lib/command/put' , ( ) => {
32+ describe ( '@hydrofoil/talos/lib/command/put' , function ( ) {
3333 const params : Put = {
3434 base,
3535 endpoint : 'http://db.talos.lndo.site/repositories/tests' ,
@@ -45,7 +45,7 @@ describe('@hydrofoil/talos', function () {
4545 password : 'password' ,
4646 } )
4747
48- before ( async ( ) => {
48+ before ( async function ( ) {
4949 await DELETE `?s ?p ?o` . WHERE `?s ?p ?o` . execute ( client )
5050
5151 await testData `
@@ -59,20 +59,20 @@ describe('@hydrofoil/talos', function () {
5959 `
6060 } )
6161
62- it ( 'ignores paths which do not exist' , async ( ) => {
62+ it ( 'ignores paths which do not exist' , async function ( ) {
6363 await expect ( put ( [ path . resolve ( testResources , '../../foobar' ) ] , params ) ) . not . to . have . been . rejected
6464 } )
6565
66- it ( 'ignores paths which are not directories' , async ( ) => {
66+ it ( 'ignores paths which are not directories' , async function ( ) {
6767 await expect ( put ( [ path . resolve ( testResources , './put.test.ts' ) ] , params ) ) . not . to . have . been . rejected
6868 } )
6969
70- describe ( `--resources base ${ base } ` , ( ) => {
71- before ( async ( ) => {
70+ describe ( `--resources base ${ base } ` , function ( ) {
71+ before ( async function ( ) {
7272 await put ( [ dir ] , params )
7373 } )
7474
75- context ( 'turtle' , ( ) => {
75+ context ( 'turtle' , function ( ) {
7676 it ( 'replaces entire graph by default' , async function ( ) {
7777 const dataset = $rdf . dataset ( ) . addAll ( await CONSTRUCT `?s ?p ?o`
7878 . FROM ( ns ( 'project' ) )
@@ -91,31 +91,31 @@ describe('@hydrofoil/talos', function () {
9191 expect ( dataset . toCanonical ( ) ) . toMatchSnapshot ( )
9292 } )
9393
94- it ( 'inserts into graph constructed from path' , async ( ) => {
94+ it ( 'inserts into graph constructed from path' , async function ( ) {
9595 const userCreated = ASK `${ ns ( 'project/creta/user/tpluscode' ) } a ${ schema . Person } `
9696 . FROM ( ns ( 'project/creta/user/tpluscode' ) )
9797 . execute ( client )
9898
9999 await expect ( userCreated ) . to . eventually . be . true
100100 } )
101101
102- it ( 'escapes paths to produce valid URIs' , async ( ) => {
102+ it ( 'escapes paths to produce valid URIs' , async function ( ) {
103103 const userCreated = ASK `${ ns ( 'project/creta/user/Kov%C3%A1cs%20J%C3%A1nos' ) } a ${ schema . Person } `
104104 . FROM ( ns ( 'project/creta/user/Kov%C3%A1cs%20J%C3%A1nos' ) )
105105 . execute ( client )
106106
107107 await expect ( userCreated ) . to . eventually . be . true
108108 } )
109109
110- it ( 'allows dots in paths' , async ( ) => {
110+ it ( 'allows dots in paths' , async function ( ) {
111111 const userCreated = ASK `${ ns ( 'project/creta/user.group/john.doe' ) } a ${ vcard . Group } `
112112 . FROM ( ns ( 'project/creta/user.group/john.doe' ) )
113113 . execute ( client )
114114
115115 await expect ( userCreated ) . to . eventually . be . true
116116 } )
117117
118- it ( 'correctly applies relative URIs to base paths' , async ( ) => {
118+ it ( 'correctly applies relative URIs to base paths' , async function ( ) {
119119 const hasExpectedLinks = ASK `
120120 ${ ns ( 'project/creta/user/tpluscode' ) }
121121 ${ schema . knows } ${ ns ( 'project/creta/user/Kov%C3%A1cs%20J%C3%A1nos' ) } ;
@@ -127,7 +127,7 @@ describe('@hydrofoil/talos', function () {
127127 await expect ( hasExpectedLinks ) . to . eventually . be . true
128128 } )
129129
130- it ( 'correctly applies absolute URIs to base paths' , async ( ) => {
130+ it ( 'correctly applies absolute URIs to base paths' , async function ( ) {
131131 const hasExpectedType = ASK `
132132 ${ ns ( 'project/creta/user/tpluscode' ) } a ${ ns ( 'api/Person' ) }
133133 `
@@ -137,7 +137,7 @@ describe('@hydrofoil/talos', function () {
137137 await expect ( hasExpectedType ) . to . eventually . be . true
138138 } )
139139
140- it ( 'leaves angle brackets inside single line string literals intact' , async ( ) => {
140+ it ( 'leaves angle brackets inside single line string literals intact' , async function ( ) {
141141 const [ { value } ] = await SELECT `?value` . WHERE `
142142 ${ ns ( 'project/creta/shape' ) } ${ sh . property } ?property .
143143
@@ -151,7 +151,7 @@ describe('@hydrofoil/talos', function () {
151151 expect ( value . value ) . to . eq ( '<span>single line template</span>' )
152152 } )
153153
154- it ( 'leaves angle brackets inside multi line string literals intact' , async ( ) => {
154+ it ( 'leaves angle brackets inside multi line string literals intact' , async function ( ) {
155155 const [ { value } ] = await SELECT `?value` . WHERE `
156156 ${ ns ( 'project/creta/shape' ) } ${ sh . property } ?property .
157157
@@ -170,7 +170,7 @@ template
170170` )
171171 } )
172172
173- it ( 'handles index.ttl file as parent path' , async ( ) => {
173+ it ( 'handles index.ttl file as parent path' , async function ( ) {
174174 const indexCorrectlyInserted = ASK `
175175 ${ ns ( 'project' ) } a ${ schema . Thing }
176176 `
@@ -180,7 +180,7 @@ template
180180 await expect ( indexCorrectlyInserted ) . to . eventually . be . true
181181 } )
182182
183- it ( 'correctly resolves root resource from index.ttl' , async ( ) => {
183+ it ( 'correctly resolves root resource from index.ttl' , async function ( ) {
184184 const indexCorrectlyInserted = ASK `
185185 ${ $rdf . namedNode ( rootResource ) } a ${ schema . Thing }
186186 `
@@ -190,7 +190,7 @@ template
190190 await expect ( indexCorrectlyInserted ) . to . eventually . be . true
191191 } )
192192
193- it ( 'keep trailing slash from relative paths resulting in root URI' , async ( ) => {
193+ it ( 'keep trailing slash from relative paths resulting in root URI' , async function ( ) {
194194 const indexCorrectlyInserted = ASK `
195195 ${ ns ( 'project' ) } ${ schema . parentItem } <${ rootResource } >
196196 `
@@ -200,7 +200,7 @@ template
200200 await expect ( indexCorrectlyInserted ) . to . eventually . be . true
201201 } )
202202
203- it ( 'preserves trailing slash if present in path' , async ( ) => {
203+ it ( 'preserves trailing slash if present in path' , async function ( ) {
204204 const indexCorrectlyInserted = ASK `
205205 ${ ns ( 'project/creta/user/tpluscode' ) } ${ schema . parentItem } ${ ns ( 'project/creta/' ) }
206206 `
@@ -210,7 +210,7 @@ template
210210 await expect ( indexCorrectlyInserted ) . to . eventually . be . true
211211 } )
212212
213- it ( 'merges with existing resource representation when option is set' , async ( ) => {
213+ it ( 'merges with existing resource representation when option is set' , async function ( ) {
214214 const group = ns ( 'project/creta/user.group/admins' )
215215
216216 const indexCorrectlyInserted = ASK `
@@ -224,16 +224,16 @@ template
224224 } )
225225 } )
226226
227- context ( 'n-quads' , ( ) => {
228- it ( 'inserts into graph constructed from path' , async ( ) => {
227+ context ( 'n-quads' , function ( ) {
228+ it ( 'inserts into graph constructed from path' , async function ( ) {
229229 const userCreated = ASK `${ ns ( 'project/creta/project/creta' ) } a ${ doap . Project } `
230230 . FROM ( ns ( 'project/creta/project/creta' ) )
231231 . execute ( client )
232232
233233 await expect ( userCreated ) . to . eventually . be . true
234234 } )
235235
236- it ( 'correctly applies absolute URIs to base paths' , async ( ) => {
236+ it ( 'correctly applies absolute URIs to base paths' , async function ( ) {
237237 const hasExpectedType = ASK `
238238 ${ ns ( 'project/creta/project/creta' ) } ${ schema . related } ${ ns ( 'project/roadshow' ) }
239239 `
@@ -244,8 +244,8 @@ template
244244 } )
245245 } )
246246
247- context ( 'JSON-LD' , ( ) => {
248- it ( 'correctly applies absolute URIs to base paths' , async ( ) => {
247+ context ( 'JSON-LD' , function ( ) {
248+ it ( 'correctly applies absolute URIs to base paths' , async function ( ) {
249249 const hasExpectedType = ASK `
250250 ${ ns ( 'project/roadshow' ) } ${ schema . related } ${ ns ( 'project/creta' ) }
251251 `
@@ -256,8 +256,8 @@ template
256256 } )
257257 } )
258258
259- context ( 'n-triples' , ( ) => {
260- it ( 'correctly applies absolute URIs to base paths' , async ( ) => {
259+ context ( 'n-triples' , function ( ) {
260+ it ( 'correctly applies absolute URIs to base paths' , async function ( ) {
261261 const hasExpectedType = ASK `
262262 ${ ns ( 'project/shaperone' ) } ${ schema . related } ${ ns ( 'project/roadshow' ) } , ${ ns ( 'project/creta' ) }
263263 `
@@ -268,8 +268,8 @@ template
268268 } )
269269 } )
270270
271- context ( 'trig' , ( ) => {
272- it ( 'inserts into graphs constructed from path' , async ( ) => {
271+ context ( 'trig' , function ( ) {
272+ it ( 'inserts into graphs constructed from path' , async function ( ) {
273273 const results = await SELECT `?resource ?graph ?type`
274274 . WHERE `
275275 graph ?graph {
@@ -303,15 +303,15 @@ template
303303 } )
304304 } )
305305
306- context ( 'with multiple directories' , ( ) => {
307- before ( async ( ) => {
306+ context ( 'with multiple directories' , function ( ) {
307+ before ( async function ( ) {
308308 const fooDir = path . resolve ( testResources , './resources.foo' )
309309 const barDir = path . resolve ( testResources , './resources.bar' )
310310
311311 await put ( [ dir , fooDir , barDir ] , params )
312312 } )
313313
314- it ( 'merges statements from multiple graph documents' , async ( ) => {
314+ it ( 'merges statements from multiple graph documents' , async function ( ) {
315315 const ask = ASK `
316316 <${ rootResource } >
317317 ${ schema . name } "Bar environment" ;
@@ -325,7 +325,7 @@ template
325325 await expect ( ask . execute ( client ) ) . to . eventually . be . true
326326 } )
327327
328- it ( 'merges statements from multiple dataset documents' , async ( ) => {
328+ it ( 'merges statements from multiple dataset documents' , async function ( ) {
329329 const ask = ASK `
330330 ${ ns ( 'trig/users/jane-doe' ) }
331331 a ${ foaf . Person } ;
@@ -336,7 +336,7 @@ template
336336 await expect ( ask ) . to . eventually . be . true
337337 } )
338338
339- it ( 'merges statements from a mix of dataset and graph documents' , async ( ) => {
339+ it ( 'merges statements from a mix of dataset and graph documents' , async function ( ) {
340340 const ask = ASK `
341341 ${ ns ( 'trig/users/john-doe' ) }
342342 a ${ foaf . Person } ;
0 commit comments