removed endpoints
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
b6d666d223
commit
d1e8f5fb1c
|
@ -1,11 +0,0 @@
|
||||||
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();
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,10 +0,0 @@
|
||||||
const app = require('vn-loopback/server/server');
|
|
||||||
|
|
||||||
describe('workerTimeControl getHoursWorked()', () => {
|
|
||||||
it('should return an totalWorkedYear to be defined', async() => {
|
|
||||||
let ctx = {req: {accessToken: {userId: 9}}};
|
|
||||||
let result = await app.models.WorkerTimeControl.getHoursWorked(ctx, null);
|
|
||||||
|
|
||||||
expect(result.totalWorekdYear).toBeDefined();
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,10 +0,0 @@
|
||||||
const app = require('vn-loopback/server/server');
|
|
||||||
|
|
||||||
describe('workerTimeControl getWorkedWeek()', () => {
|
|
||||||
it('should return an timeds to be defined', async() => {
|
|
||||||
let ctx = {req: {accessToken: {userId: 9}}};
|
|
||||||
let result = await app.models.WorkerTimeControl.getWorkedWeek(ctx, null);
|
|
||||||
|
|
||||||
expect(result.timeds).toBeDefined();
|
|
||||||
});
|
|
||||||
});
|
|
Loading…
Reference in New Issue