This commit is contained in:
Jake Howard 2017-02-19 22:01:43 +00:00
parent 69f55aadc7
commit 0a83576508

View file

@ -1,6 +1,7 @@
import { expect } from 'chai';
import { runServer } from './helpers';
import * as fs from 'fs';
import * as path from 'path';
describe('Server', function () {
@ -39,7 +40,7 @@ describe('Server', function () {
});
describe('index route', function () {
const body = fs.readFileSync(__dirname + '/../site/index.html').toString();
const body = fs.readFileSync(path.join(__dirname, '..', 'site', 'index.html')).toString();
['', '/', '/index.html'].forEach(function (path : string) {
it('should render ' + path, function (done) {