1.1.15 • Published 5 months ago
fs-stats-spys v1.1.15
fs-stats-spys
Helper for using sinon spys with fs.Stats.
var assert = require('assert');
var statsSpys = require('fs-stats-spys');
var Iterator = require('fs-iterator');
var spys = statsSpys();
var iterator = new Iterator(TEST_DIR);
iterator.forEach(
function (entry) {
spys(entry.stats);
},
function (err) {
assert.equal(spys.dir.callCount, 5);
assert.equal(spys.file.callCount, 7);
assert.equal(spys.link.callCount, 0);
done();
}
);
});
1.1.15
5 months ago
1.1.14
5 months ago
1.1.13
5 months ago
1.1.12
5 months ago
1.1.11
5 months ago
1.1.9
5 months ago
1.1.8
5 months ago
1.1.10
5 months ago
1.1.1
6 months ago
1.1.7
6 months ago
1.1.6
6 months ago
1.1.5
6 months ago
1.1.4
6 months ago
1.1.3
6 months ago
1.1.2
6 months ago
1.1.0
7 months ago
1.0.2
3 years ago
1.0.1
5 years ago
1.0.0
5 years ago