Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing test

  • Loading branch information...
commit 22bba6afe41c6295a630ad245baebe900dea405d 1 parent 7b94cb0
Paul Serby authored March 21, 2012

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  test/compact.test.js
10  test/compact.test.js
... ...
@@ -1,4 +1,5 @@
1  
-var fs = require('fs')
  1
+var path = require('path')
  2
+  , fs = require('fs')
2 3
   , mkdirp = require('mkdirp')
3 4
   , async = require('asyncjs');
4 5
 
@@ -27,10 +28,9 @@ describe('compact.js', function() {
27 28
       }).should.throw('Invalid source path \'invalid src path\'');
28 29
     });
29 30
 
30  
-    it('should error with invalid destination path', function() {
31  
-      (function() {
32  
-        var compact = require('../../compact').createCompact(srcPath, 'invalid dest path');
33  
-      }).should.throw('Invalid destination path \'invalid dest path\'');
  31
+    it('should create a missing invalid destination path', function() {
  32
+      var compact = require('../../compact').createCompact(srcPath, './invalid-dest');
  33
+      path.existsSync('./invalid-dest').should.equal(true);
34 34
     });
35 35
 
36 36
     it('should succeed with valid paths', function() {

0 notes on commit 22bba6a

Please sign in to comment.
Something went wrong with that request. Please try again.