refactor title of test
gitea/salix/pipeline/head This commit is unstable
Details
gitea/salix/pipeline/head This commit is unstable
Details
This commit is contained in:
parent
189d0a27bc
commit
6f7a4fc5ff
|
@ -3,7 +3,7 @@ const models = require('vn-loopback/server/server').models;
|
|||
describe('route updateWorkCenter()', () => {
|
||||
const routeId = 1;
|
||||
|
||||
it('should update the commissionWorkCenterFk from workerLabour.workCenterFK', async() => {
|
||||
it('should set the commission work center if the worker has workCenter', async() => {
|
||||
const tx = await models.Defaulter.beginTransaction({});
|
||||
try {
|
||||
const developerId = 9;
|
||||
|
@ -26,7 +26,7 @@ describe('route updateWorkCenter()', () => {
|
|||
}
|
||||
});
|
||||
|
||||
it('should update the commissionWorkCenterFk from defaultWorkCenterFk if workerLabour.workCenterFK is null', async() => {
|
||||
it(`should set the commission work center equals default work center if the worker hasn't workCenter`, async() => {
|
||||
const tx = await models.Defaulter.beginTransaction({});
|
||||
try {
|
||||
const noExistentId = 2;
|
||||
|
|
Loading…
Reference in New Issue