UNPKG

ts-bdd

Version:

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

20 lines 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Repository = void 0; 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 }; } } exports.Repository = Repository; //# sourceMappingURL=repo.js.map