mirror of
https://github.com/bakustarver/rpgmakermlinux-cicpoffs.git
synced 2025-07-05 16:15:17 +02:00
12 lines
429 B
JavaScript
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()
|
|
})
|