You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

18 lines
428 B

var testutil = require('testutil')
, fs = require('../')
, path = require('path')
var TEST_DIR;
describe('native fs', function() {
beforeEach(function() {
TEST_DIR = testutil.createTestDir('fs-extra')
})
it('should use native fs methods', function() {
var file = path.join(TEST_DIR, 'write.txt')
fs.writeFileSync(file, 'hello')
var data = fs.readFileSync(file, 'utf8')
EQ (data, 'hello')
})
})