DefinitelyTyped/types/stubby/stubby-tests.ts
Piotr Roszatycki ff809baaec stubby: new definitions (#36617)
* stubby: new definitions

* stubby: it's-a me
2019-07-03 09:15:15 -07:00

28 lines
491 B
TypeScript

import { Stubby } from 'stubby';
// README
{
const stubby1 = new Stubby();
const stubby2 = new Stubby();
stubby1.start({
stubs: 80,
admin: 81,
location: 'localhost',
data: [
{
request: { url: '/anywhere' },
},
{
request: { url: '/but/here' },
},
],
});
stubby2.start({
stubs: 82,
admin: 83,
location: '127.0.0.2',
});
}