mirror of
https://github.com/jprichardson/node-fs-extra.git
synced 2026-01-25 16:42:57 +00:00
18 lines
428 B
JavaScript
18 lines
428 B
JavaScript
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')
|
|
})
|
|
}) |