Skip to content

Commit 0180ed8

Browse files
committed
using testfiles dir instead
1 parent e44954e commit 0180ed8

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

test/patch.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ function rm (file) {
2121
}
2222

2323
function write (text, file) {
24-
fsExtra.mkdirpSync(path.dirname(file));
2524
return fs.writeFileSync(__dirname + '/' + file, text);
2625
}
2726

2827

2928
describe('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

Comments
 (0)