UNPKG

ts-bdd

Version:

A TypeScript BDD testing framework with typed shared examples and state management

16 lines 388 B
export class Repository { static async findById(id) { return { id, name: 'some-name' }; } static async findAll() { return [ { id: 1, name: 'first' }, { id: 2, name: 'second' }, { id: 3, name: 'third' }, ]; } static async create(name) { return { id: 4, name }; } } //# sourceMappingURL=repo.js.map