1 | const Burn = require("../dist/core").Burn;
|
2 |
|
3 |
|
4 | let expect = require("chai").expect;
|
5 |
|
6 | describe("app start", () => {
|
7 | it('启动无错误', function (done) {
|
8 | const app = new Burn;
|
9 | app.run();
|
10 | done();
|
11 | })
|
12 | it('装载config', function (done) {
|
13 | const app = new Burn;
|
14 | app.run();
|
15 | expect(app.config.middleware[0]).equal('parse');
|
16 | done();
|
17 | })
|
18 |
|
19 | }) |
\ | No newline at end of file |