mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-13 12:20:12 +08:00
Add superagent and supertest definitions
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/// <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;
|
||||
});
|
||||
Reference in New Issue
Block a user