archive
/
tstatic
Archived
1
Fork 0
This commit is contained in:
Jake Howard 2017-02-19 22:01:43 +00:00
parent 69f55aadc7
commit 0a83576508
1 changed files with 2 additions and 1 deletions

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) {