{"size": 547, "ext": "js", "max_stars_repo_path": "src/__test__/lib/subAssemblyMock.js", "max_stars_repo_name": "fly-sorter/original-fly-sorter-back-end", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/__test__/lib/subAssemblyMock.js", "max_issues_repo_name": "fly-sorter/original-fly-sorter-back-end", "max_issues_repo_issues_event_min_datetime": "2019-12-27T19:47:51.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T20:56:08.000Z", "max_forks_repo_path": "src/__test__/lib/subAssemblyMock.js", "max_forks_repo_name": "fly-sorter/original-fly-sorter-back-end", "max_forks_repo_forks_event_min_datetime": "2018-12-17T17:09:08.000Z", "max_forks_repo_forks_event_max_datetime": "2018-12-17T17:09:08.000Z"}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 26.0476190476, "max_line_length": 59, "alphanum_fraction": 0.6745886654}
'use strict';

const faker = require('faker');
const SubAssembly = require('../../model/sub-assembly');

const subAssemblyMock = module.exports = {};

subAssemblyMock.pCreateSubAssemblyMock = () => {
  return new SubAssembly({
    subId: faker.lorem.words(1) + Math.random().toString(),
    subPart: faker.lorem.words(1),
    subVersion: faker.lorem.words(2),
    subQuantity: Math.random().toString(),
    subMinutes: Math.random().toString(),
  }).save();
};

subAssemblyMock.pCleanSubAssemblyMocks = () => {
  return SubAssembly.remove({});
};
