-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathapplication.test.ts
40 lines (36 loc) · 970 Bytes
/
application.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { assertEquals } from "./deps.ts";
import { Application } from "./application.ts";
import { superoak } from "https://deno.land/x/[email protected]/mod.ts";
Deno.test({
name: "useLogger should be chainable",
fn() {
const app: Application = new Application({
controllers: [],
injectables: [],
});
const shouldBeApplication: any = app.useLogger();
assertEquals(app, shouldBeApplication);
},
});
Deno.test({
name: "useTiming should be chainable",
fn() {
const app: Application = new Application({
controllers: [],
injectables: [],
});
const shouldBeApplication: any = app.useTiming();
assertEquals(app, shouldBeApplication);
},
});
Deno.test({
name: "useCors should be chainable",
fn() {
const app: Application = new Application({
controllers: [],
injectables: [],
});
const shouldBeApplication: any = app.useCors();
assertEquals(app, shouldBeApplication);
},
});