Permalink
Browse files

Cleaner

  • Loading branch information...
1 parent 22bba6a commit 4876ad12ca40b79bd0f9b55c29b9b08d28faf165 @serby committed Mar 21, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/compact.test.js
View
@@ -3,7 +3,6 @@ var path = require('path')
, mkdirp = require('mkdirp')
, async = require('asyncjs');
-
var srcPath = __dirname + '/assets'
, destPath = __dirname + '/tmp';
@@ -29,8 +28,8 @@ describe('compact.js', function() {
});
it('should create a missing invalid destination path', function() {
- var compact = require('../../compact').createCompact(srcPath, './invalid-dest');
- path.existsSync('./invalid-dest').should.equal(true);
+ var compact = require('../../compact').createCompact(srcPath, destPath + '/invalid-dest');
+ path.existsSync(destPath + '/invalid-dest').should.equal(true);
});
it('should succeed with valid paths', function() {

0 comments on commit 4876ad1

Please sign in to comment.