salix/modules/worker/back/methods/worker-time-control/specs/addAutoTime.spec.js

12 lines
387 B
JavaScript
Raw Normal View History

2019-06-03 07:20:20 +00:00
const app = require('vn-loopback/server/server');
describe('workerTimeControl addAutoTime()', () => {
it('should return an undefined value', async() => {
let ctx = {req: {accessToken: {userId: 9}}};
let data = {'timed': new Date()};
let result = await app.models.WorkerTimeControl.addAutoTime(ctx, data);
expect(result).toBeUndefined();
});
});