Browse Source

JSS

ci/travis-osximage
JP Richardson 10 years ago
parent
commit
38f0edb3d2
  1. 16
      test/mkdirp/return_sync.test.js

16
test/mkdirp/return_sync.test.js

@ -1,17 +1,17 @@
var assert = require('assert')
var fs = require('fs')
var path = require('path')
var fse = require('../../')
var testutil = require('testutil')
describe('mkdirp / return value', function() {
/* global describe, it */
describe('mkdirp / return value', function () {
it('should', function () {
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16)
var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16)
var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16)
var x = Math.floor(Math.random() * Math.pow(16, 4)).toString(16)
var y = Math.floor(Math.random() * Math.pow(16, 4)).toString(16)
var z = Math.floor(Math.random() * Math.pow(16, 4)).toString(16)
var dir = testutil.createTestDir('fs-extra') + '/'
var file = dir + [x,y,z].join('/')
var dir = testutil.createTestDir('fs-extra') + '/'
var file = dir + [x, y, z].join('/')
// should return the first dir created.
// By this point, it would be profoundly surprising if /tmp didn't

Loading…
Cancel
Save