Files
threshold-ui/addons/api/mirage/generated/factories/connection.js
T
Zhihe Li ce83346461 Icu 8073 mirage recording connection channel (#109)
* feat: 🎸 Add mirage data for recordings, connections, channels

✅ Closes: ICU-8073
2023-03-10 14:20:58 -05:00

21 lines
496 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Factory } from 'miragejs';
import { faker } from '@faker-js/faker';
/**
* GeneratedConnectionModelFactory
*/
export default Factory.extend({
bytes_up: () => faker.datatype.number(),
bytes_down: () => faker.datatype.number(),
errors: () => faker.datatype.number({ max: 10 }),
started_time() {
return faker.date.recent(3, this.finished_time);
},
finished_time: () => faker.date.recent(),
});