lml-main
Version:
This is now a mono repository published into many standalone packages.
39 lines • 1.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var moment = require("moment");
var faker_1 = require("faker");
exports.mockAllocation = function (type) {
if (type === void 0) { type = 'ACTUAL'; }
return ({
refId: faker_1.random.uuid(),
type: type,
job: {
refId: faker_1.random.uuid(),
},
courier: {
refId: faker_1.random.uuid(),
},
allocatedAt: moment().toISOString(),
origin: 'MANUAL',
reason: 'unit test',
user: 'test',
});
};
exports.mockAllocationGroup = function (type) {
if (type === void 0) { type = 'ACTUAL'; }
return ({
refId: faker_1.random.uuid(),
type: type,
jobs: [{
refId: faker_1.random.uuid(),
}],
courier: {
refId: faker_1.random.uuid(),
},
allocatedAt: moment().toISOString(),
origin: 'MANUAL',
reason: 'unit test',
user: 'test',
});
};
//# sourceMappingURL=data.js.map