Skip to content

Commit

Permalink
[minor] Rename index to view
Browse files Browse the repository at this point in the history
[minor] Correct path for phantom
  • Loading branch information
3rd-Eden committed Jul 9, 2014
1 parent c016863 commit dd44cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Illuminati.readable('glob', '*.test.js');
Illuminati.writable('assets', [
'./mocha.js',
'./mocha.css',
'./index.html'
'./view.html'
].map(function optimize(file) {
if (!~file.indexOf('mocha')) return file;

Expand Down Expand Up @@ -165,7 +165,7 @@ Illuminati.readable('server', function server(fn) {
*/
Illuminati.readable('phantomjs', function phantomjs(fn) {
var phantom = child.spawn(
path.join(path.dirname(require.resolve('mocha-phantomjs')), '..', '.bin', 'mocha-phantomjs'), [
path.join(path.dirname(require.resolve('mocha-phantomjs')), '../..', '.bin', 'mocha-phantomjs'), [
'http://localhost:'+ this.conf.port
], {
stdio: 'inherit'
Expand Down Expand Up @@ -298,7 +298,7 @@ Illuminati.readable('incoming', function incoming(req, res) {

var illuminati = this;

if (req.url === '/') req.url = '/index.html';
if (req.url === '/') req.url = '/view.html';
if (illuminati.assets.some(function some(asset) {
if (asset.url !== req.url) return false;

Expand Down
File renamed without changes.

0 comments on commit dd44cec

Please sign in to comment.