rpgmaker-linux/nwjs/packagefiles/tyranobuilder/node_modules/graceful-fs/test/stats.js
2024-07-01 20:36:56 +03:00

12 lines
429 B
JavaScript

var fs = require('fs')
var gfs = require('../graceful-fs.js')
var test = require('tap').test
test('graceful fs uses same stats constructor as fs', function (t) {
t.equal(gfs.Stats, fs.Stats, 'should reference the same constructor')
t.ok(fs.statSync(__filename) instanceof fs.Stats,
'should be instance of fs.Stats')
t.ok(gfs.statSync(__filename) instanceof fs.Stats,
'should be instance of fs.Stats')
t.end()
})