Permalink
Browse files

modified browser test server to return the current version of director

  • Loading branch information...
1 parent 4d6af4a commit 429c53cb3976edd970ff695510c4fbf43c8e1f4b @coen-hyde coen-hyde committed with indexzero Dec 4, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/browser/backend/backend.js
@@ -2,6 +2,7 @@ var http = require('http'),
fs = require('fs'),
path = require('path'),
director = require('../../../lib/director'),
+ pkg = require('../../../package.json'),
index;
fs.readFile('../html5-routes-harness.html', function (err, data) {
@@ -24,6 +25,10 @@ function fileServer(folder, file) {
root = path.resolve(root, '..', '..');
}
+ if (folder === 'build' && path.basename(file, '.js') === 'director') {
+ file = 'director-'+pkg.version+'.js'
+ }
+
var filepath = path.resolve(root, folder, file);
var res = this.res;

2 comments on commit 429c53c

@pksunkara
Contributor

@indexzero If we are going to build using noVersion option, shouldnt this be changed?

@indexzero
Member

oh yeah. Derp. I'll revert it

Please sign in to comment.