@@ -21,14 +21,13 @@ function rm (file) {
2121}
2222
2323function write ( text , file ) {
24- fsExtra . mkdirpSync ( path . dirname ( file ) ) ;
2524 return fs . writeFileSync ( __dirname + '/' + file , text ) ;
2625}
2726
2827
2928describe ( 'PATCH' , function ( ) {
3029 var ldp = ldnode . createServer ( {
31- base : __dirname + '/patchResources ' ,
30+ base : __dirname + '/testfiles ' ,
3231 mount : '/test'
3332 } ) ;
3433 ldp . listen ( 3456 ) ;
@@ -37,17 +36,17 @@ describe('PATCH', function () {
3736 describe ( 'POST' , function ( ) {
3837 write (
3938 '<#current> <#temp> 123 .' ,
40- 'patchResources /emptyExample.ttl' ) ;
39+ 'testfiles /emptyExample.ttl' ) ;
4140
4241 it ( 'nothing should change with an empty file' , function ( done ) {
4342 server . post ( '/emptyExample.ttl' )
4443 . set ( 'content-type' , 'application/sparql-update' )
4544 . send ( '' )
4645 . end ( function ( err , res , body ) {
4746 assert . equal (
48- read ( 'patchResources /emptyExample.ttl' ) ,
47+ read ( 'testfiles /emptyExample.ttl' ) ,
4948 '\n <#current> <#temp> 123 .\n' ) ;
50- rm ( 'patchResources /emptyExample.ttl' ) ;
49+ rm ( 'testfiles /emptyExample.ttl' ) ;
5150 done ( err ) ;
5251 } ) ;
5352 } ) ;
0 commit comments