mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
17 lines
357 B
TypeScript
17 lines
357 B
TypeScript
/// <reference path="supertest.d.ts" />
|
|
/// <reference path="../express/express.d.ts" />
|
|
|
|
import supertest = require('supertest')
|
|
import express = require('express');
|
|
|
|
var app = express();
|
|
|
|
supertest(app)
|
|
.get('/user')
|
|
.expect('Content-Type', /json/)
|
|
.expect('Content-Length', '20')
|
|
.expect(201)
|
|
.end((err, res) => {
|
|
if (err) throw err;
|
|
});
|