mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
19 lines
349 B
TypeScript
19 lines
349 B
TypeScript
/// <reference path="promisify-supertest.d.ts" />
|
|
/// <reference path="../express/express.d.ts" />
|
|
|
|
import * as request from 'promisify-supertest';
|
|
import * as express from 'express';
|
|
|
|
let app = express();
|
|
|
|
request(app)
|
|
.get('/')
|
|
.expect(200)
|
|
.end()
|
|
.then(function(res) {
|
|
// blah blah blah
|
|
})
|
|
.catch(function(err) {
|
|
throw err;
|
|
});
|