Skip to content

Commit 4b83a31

Browse files
author
nicola
committed
adding code comments
1 parent 9800577 commit 4b83a31

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎test/patch.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ var expect = require('chai').expect;
66
var assert = require('chai').assert;
77
var path = require('path');
88

9+
// Helper functions for the FS
910
function cp (src, dest) {
1011
return fsExtra.copySync(
1112
__dirname + '/' + src,
1213
__dirname + '/' + dest);
1314
}
15+
1416
function read (file) {
1517
return fs.readFileSync(__dirname + '/' + file, {
1618
'encoding': 'utf8'
1719
});
1820
}
21+
1922
function rm (file) {
2023
return fs.unlinkSync(__dirname + '/' + file);
2124
}
@@ -24,8 +27,8 @@ function write (text, file) {
2427
return fs.writeFileSync(__dirname + '/' + file, text);
2528
}
2629

27-
2830
describe('PATCH', function () {
31+
// Starting LDP
2932
var ldp = ldnode.createServer({
3033
base: __dirname + '/testfiles',
3134
mount: '/test'
@@ -151,4 +154,4 @@ describe('PATCH', function () {
151154
done(err);
152155
});
153156
});
154-
});
157+
});

0 commit comments

Comments
 (0)