diff --git a/modules/ticket/back/methods/ticket/specs/itemLack.spec.js b/modules/ticket/back/methods/ticket/specs/itemLack.spec.js index 5bf1e422a..ded595376 100644 --- a/modules/ticket/back/methods/ticket/specs/itemLack.spec.js +++ b/modules/ticket/back/methods/ticket/specs/itemLack.spec.js @@ -1,6 +1,6 @@ const models = require('vn-loopback/server/server').models; -fdescribe('Item Lack', () => { +describe('Item Lack', () => { beforeAll(async() => { ctx = { req: { @@ -134,7 +134,7 @@ fdescribe('Item Lack', () => { } }); - fit('should return data with filter.lack', async() => { + it('should return data with filter.lack', async() => { const tx = await models.Ticket.beginTransaction({}); const options = {transaction: tx}; diff --git a/modules/ticket/back/methods/ticket/specs/itemLackDetail.spec.js b/modules/ticket/back/methods/ticket/specs/itemLackDetail.spec.js index 6b2881a84..28da66c4c 100644 --- a/modules/ticket/back/methods/ticket/specs/itemLackDetail.spec.js +++ b/modules/ticket/back/methods/ticket/specs/itemLackDetail.spec.js @@ -11,7 +11,9 @@ describe('Item Lack Detail', () => { const result = await models.Ticket.itemLackDetail(id, options); expect(result).toBeFalsy(); + await tx.rollback(); } catch (e) { + await tx.rollback(); throw e; } }); @@ -25,7 +27,9 @@ describe('Item Lack Detail', () => { const result = await models.Ticket.itemLackDetail(id, options); expect(result).toBeFalsy(); + await tx.rollback(); } catch (e) { + await tx.rollback(); throw e; } }); @@ -39,7 +43,9 @@ describe('Item Lack Detail', () => { const result = await models.Ticket.itemLackDetail(id, options); expect(result).toBeFalsy(); + await tx.rollback(); } catch (e) { + await tx.rollback(); throw e; } }); diff --git a/modules/ticket/back/methods/ticket/specs/negativeOrigin.spec.js b/modules/ticket/back/methods/ticket/specs/negativeOrigin.spec.js index 899f3c63a..6da2c607e 100644 --- a/modules/ticket/back/methods/ticket/specs/negativeOrigin.spec.js +++ b/modules/ticket/back/methods/ticket/specs/negativeOrigin.spec.js @@ -1,6 +1,6 @@ const models = require('vn-loopback/server/server').models; -fdescribe('NegativeOrigin', () => { +describe('NegativeOrigin', () => { it('should return OK', async() => { const tx = await models.Ticket.beginTransaction({}); const ctx = {req: {accessToken: {userId: 9}}};