|
|
@ -1,6 +1,7 @@ |
|
|
|
var assert = require('assert') |
|
|
|
var path = require('path') |
|
|
|
var os = require('os') |
|
|
|
var fs = require('fs') |
|
|
|
var fse = require('../') |
|
|
|
|
|
|
|
/* global afterEach, beforeEach, describe, it */ |
|
|
@ -23,4 +24,11 @@ describe('native fs', function () { |
|
|
|
var data = fse.readFileSync(file, 'utf8') |
|
|
|
assert.equal(data, 'hello') |
|
|
|
}) |
|
|
|
|
|
|
|
it('should have native fs constants', function () { |
|
|
|
// Node.js v0.12 / IO.js
|
|
|
|
if ('F_OK' in fs) { |
|
|
|
assert.equal(fse.F_OK, fs.F_OK) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|