Skip to content
Browse files

generate the bundle if not present for the bundle test

  • Loading branch information...
1 parent ee622fe commit 68f2e683263c49c5994c59011021d6908b712da6 @substack committed Apr 6, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/bundle.js
View
5 test/bundle.js
@@ -3,6 +3,11 @@ var dnode = require('../');
var http = require('http');
var express = require('express');
+var path = require('path');
+if (!path.existsSync(__dirname + '/../browser/bundle.js')) {
+ require('../bin/bundle.js');
+}
+
test('checkCookieHTTP', function (t) {
t.plan(3);
var port = Math.floor(10000 + (Math.random() * Math.pow(2,16) - 10000));

0 comments on commit 68f2e68

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