Skip to content

Commit 4eeec35

Browse files
committed
fix: run test
1 parent e224399 commit 4eeec35

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

test/exit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const request = require('./request-service');
22

33
describe('exit from server', () => {
4-
it('Should be exit', async () => {
4+
it('Should be exit', async () => {
55
await request('http://localhost:4000/test/exit');
66
});
77
});

test/home.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
const expect = require('chai');
1+
const page = '/home';
2+
const chai = require('chai');
23
const request = require('./request-service');
34
let body: string;
4-
const page = '/home';
55
const url = `http://localhost:4000${page}`;
66

77
describe(`test work ${page} with ssr`, () => {
88
it('Should be exist "Главная страница"', async () => {
99
body = await request(url);
10-
return expect(body.includes('Главная страница')).to.equal(true);
10+
return chai.expect(body.includes('Главная страница')).to.equal(true);
1111
});
1212

1313
it('Should be exist "home.notranslatewarn"', async () => {
1414
body = await request(url);
15-
expect(body.includes('home.notranslatewarn')).to.equal(true);
15+
chai.expect(body.includes('home.notranslatewarn')).to.equal(true);
1616
});
1717
});

test/mock-server.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
const expect = require('chai');
1+
const page = '/mock';
2+
const chai = require('chai');
23
const request = require('./request-service');
34
let body: string;
4-
const page = '/mock';
55
const url = `http://localhost:4000${page}`;
66

77
describe(`test work ${page} with ssr`, () => {
8+
89
it('Should be exist "Страница с мокапом"', async () => {
910
body = await request(url);
10-
return expect(body.includes('Страница с мокапом')).to.equal(true);
11+
return chai.expect(body.includes('Страница с мокапом')).to.equal(true);
1112
});
1213

1314
it('Should be exist "mock-server works"', async () => {
1415
body = await request(url);
15-
expect(body.includes('mock-server works')).to.equal(true);
16+
chai.expect(body.includes('mock-server works')).to.equal(true);
1617
});
1718
});

test/transfer-back.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const expect = require('chai');
2-
32
const request = require('./request-service');
43
let body: string;
54
const page = '/back';

0 commit comments

Comments
 (0)