Skip to content

Commit 9e6f089

Browse files
add tests for response-time
1 parent fbf1fa4 commit 9e6f089

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

response-time/response-time-tests.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference path="response-time.d.ts" />
2+
3+
import express = require('express');
4+
import responseTime = require('response-time');
5+
var app = express();
6+
7+
app.use(responseTime());
8+
app.use(responseTime({
9+
digits: 3,
10+
header: 'X-Response-Time',
11+
suffix: true
12+
}));

0 commit comments

Comments
 (0)