Skip to content

Commit

Permalink
tests: copy-dev-null. Refs #193
Browse files Browse the repository at this point in the history
  • Loading branch information
jprichardson committed Dec 17, 2015
1 parent b002e35 commit 631ed20
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lib/copy/__tests__/copy-dev-null.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
var assert = require('assert')
var os = require('os')
var path = require('path')
var fse = require('../../')

/* global afterEach, beforeEach, describe, it */

var TEST_DIR = ''

describe.skip('fs-extra', function () {
beforeEach(function (done) {
TEST_DIR = path.join(os.tmpdir(), 'test', 'fs-extra', 'copy-dev-null')
fse.emptyDir(TEST_DIR, done)
})

afterEach(function (done) {
fse.remove(TEST_DIR, done)
})

describe('+ copy()', function () {
it('should error', function (done) {
// no /dev/null on windows
if (process.platform === 'win32') return done()
var tmpFile = path.join(TEST_DIR, 'foo')
fse.copy('/dev/null', tmpFile, function (err) {
assert(err)
})
})
})
})

0 comments on commit 631ed20

Please sign in to comment.