Use path
This commit is contained in:
parent
69f55aadc7
commit
0a83576508
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue