1.1.15 • Published 7 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
7 months ago
1.1.14
7 months ago
1.1.13
7 months ago
1.1.12
8 months ago
1.1.11
8 months ago
1.1.9
8 months ago
1.1.8
8 months ago
1.1.10
8 months ago
1.1.1
8 months ago
1.1.7
8 months ago
1.1.6
8 months ago
1.1.5
8 months ago
1.1.4
8 months ago
1.1.3
8 months ago
1.1.2
8 months ago
1.1.0
9 months ago
1.0.2
3 years ago
1.0.1
5 years ago
1.0.0
5 years ago