From 8cbde4c1379dffe01f2ac3b8ac9de31bc8e8d613 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Thu, 24 Jan 2019 09:08:28 +0100 Subject: [PATCH] removed global variable serviceRoot --- back/methods/message/specs/send.spec.js | 2 +- back/methods/user-config/specs/getUserConfig.spec.js | 2 +- back/methods/worker-mana/specs/getCurrentWorkerMana.spec.js | 2 +- back/models/specs/account.spec.js | 2 +- back/tests.js | 2 -- loopback/common/methods/vn-model/specs/crud.spec.js | 2 +- loopback/common/methods/vn-model/specs/getSetValues.spec.js | 2 +- loopback/common/methods/vn-model/specs/rewriteDbError.spec.js | 2 +- .../methods/claim-beginning/importToNewRefundTicket.spec.js | 2 +- .../back/methods/claim-end/specs/importTicketSales.spec.js | 2 +- modules/claim/back/methods/claim/specs/createFromSales.spec.js | 2 +- modules/claim/back/methods/claim/specs/getSummary.spec.js | 2 +- modules/claim/back/methods/claim/specs/regularizeClaim.spec.js | 2 +- modules/claim/back/methods/claim/specs/updateClaim.spec.js | 2 +- .../back/methods/client/specs/activeWorkersWithRole.spec.js | 2 +- .../back/methods/client/specs/addressesPropagateRe.spec.js | 2 +- .../client/back/methods/client/specs/confirmTransaction.spec.js | 2 +- modules/client/back/methods/client/specs/createWithUser.spec.js | 2 +- .../client/back/methods/client/specs/getAverageInvoiced.spec.js | 2 +- modules/client/back/methods/client/specs/getCard.spec.js | 2 +- modules/client/back/methods/client/specs/getDebt.spec.js | 2 +- modules/client/back/methods/client/specs/getMana.spec.js | 2 +- .../client/back/methods/client/specs/getTransactions.spec.js | 2 +- .../client/back/methods/client/specs/hasCustomerRole.spec.js | 2 +- modules/client/back/methods/client/specs/isValidClient.spec.js | 2 +- modules/client/back/methods/client/specs/listWorkers.spec.js | 2 +- modules/client/back/methods/client/specs/summary.spec.js | 2 +- .../client/back/methods/client/specs/updateFiscalData.spec.js | 2 +- .../methods/credit-classification/createWithInsurance.spec.js | 2 +- modules/client/back/methods/receipt/specs/filter.spec.js | 2 +- modules/client/back/models/specs/address.spec.js | 2 +- modules/item/back/methods/item-tag/specs/filterItemTags.spec.js | 2 +- modules/item/back/methods/item/specs/clone.spec.js | 2 +- modules/item/back/methods/item/specs/filter.spec.js | 2 +- modules/item/back/methods/item/specs/getDiary.spec.js | 2 +- modules/item/back/methods/item/specs/getLastEntries.spec.js | 2 +- modules/item/back/methods/item/specs/getSummary.spec.js | 2 +- modules/item/back/methods/item/specs/new.spec.js | 2 +- modules/item/back/methods/item/specs/regularize.spec.js | 2 +- modules/item/back/methods/item/specs/updateTaxes.spec.js | 2 +- modules/item/back/models/specs/item.spec.js | 2 +- modules/order/back/methods/order-row/specs/addToOrder.spec.js | 2 +- modules/order/back/methods/order-row/specs/removes.spec.js | 2 +- modules/order/back/methods/order/specs/catalogFilter.spec.js | 2 +- modules/order/back/methods/order/specs/getTaxes.spec.js | 2 +- modules/order/back/methods/order/specs/getTotal.spec.js | 2 +- modules/order/back/methods/order/specs/getTotalVolume.spec.js | 2 +- modules/order/back/methods/order/specs/getVAT.spec.js | 2 +- modules/order/back/methods/order/specs/getVolumes.spec.js | 2 +- modules/order/back/methods/order/specs/isEditable.spec.js | 2 +- modules/order/back/methods/order/specs/new.spec.js | 2 +- modules/order/back/methods/order/specs/summary.spec.js | 2 +- modules/order/back/methods/order/specs/updateBasicData.spec.js | 2 +- .../ticket/back/methods/packaging/specs/listPackaging.spec.js | 2 +- .../back/methods/sale-tracking/specs/listSaleTracking.spec.js | 2 +- .../back/methods/sale/specs/getClaimableFromTicket.spec.js | 2 +- modules/ticket/back/methods/sale/specs/moveToTicket.spec.js | 2 +- modules/ticket/back/methods/sale/specs/priceDifference.spec.js | 2 +- modules/ticket/back/methods/sale/specs/removes.spec.js | 2 +- modules/ticket/back/methods/sale/specs/reserve.spec.js | 2 +- modules/ticket/back/methods/sale/specs/updatePrice.spec.js | 2 +- modules/ticket/back/methods/sale/specs/updateQuantity.spec.js | 2 +- .../back/methods/ticket-tracking/specs/changeState.spec.js | 2 +- .../ticket/back/methods/ticket/specs/componentUpdate.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/deleted.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/filter.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/getLanded.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/getSales.spec.js | 2 +- .../ticket/back/methods/ticket/specs/getSalespersonMana.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/getShipped.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/getTaxes.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/getTotal.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/getTotalVolume.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/getVAT.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/getVolume.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/isEditable.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/new.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/summary.spec.js | 2 +- .../ticket/back/methods/ticket/specs/threeLastActive.spec.js | 2 +- modules/ticket/back/models/specs/state.spec.js | 2 +- modules/ticket/back/models/specs/ticket-packaging.spec.js | 2 +- 81 files changed, 80 insertions(+), 82 deletions(-) diff --git a/back/methods/message/specs/send.spec.js b/back/methods/message/specs/send.spec.js index 49a4ae5ff..079595b12 100644 --- a/back/methods/message/specs/send.spec.js +++ b/back/methods/message/specs/send.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('message send()', () => { it('should call the send method and return the response', async() => { diff --git a/back/methods/user-config/specs/getUserConfig.spec.js b/back/methods/user-config/specs/getUserConfig.spec.js index 2d2c4ab97..da3fc958f 100644 --- a/back/methods/user-config/specs/getUserConfig.spec.js +++ b/back/methods/user-config/specs/getUserConfig.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('userConfig getUserConfig()', () => { it(`should return the configuration data of a given user`, async() => { diff --git a/back/methods/worker-mana/specs/getCurrentWorkerMana.spec.js b/back/methods/worker-mana/specs/getCurrentWorkerMana.spec.js index 29f848e8a..1d48eef58 100644 --- a/back/methods/worker-mana/specs/getCurrentWorkerMana.spec.js +++ b/back/methods/worker-mana/specs/getCurrentWorkerMana.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('workerMana getCurrentWorkerMana()', () => { it('should get the mana of the logged worker', async() => { diff --git a/back/models/specs/account.spec.js b/back/models/specs/account.spec.js index b9d561074..c52bc4378 100644 --- a/back/models/specs/account.spec.js +++ b/back/models/specs/account.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('loopback model Account', () => { it('should return true if the user has the given role', async() => { diff --git a/back/tests.js b/back/tests.js index ac3372d80..8e21985c5 100644 --- a/back/tests.js +++ b/back/tests.js @@ -11,8 +11,6 @@ let verbose = false; if (process.argv[2] === '--v') verbose = true; -serviceRoot = `${__dirname}/../loopback`; - let Jasmine = require('jasmine'); let jasmine = new Jasmine(); let SpecReporter = require('jasmine-spec-reporter').SpecReporter; diff --git a/loopback/common/methods/vn-model/specs/crud.spec.js b/loopback/common/methods/vn-model/specs/crud.spec.js index 60ca69732..f4db987f3 100644 --- a/loopback/common/methods/vn-model/specs/crud.spec.js +++ b/loopback/common/methods/vn-model/specs/crud.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Model crud()', () => { let insertId; diff --git a/loopback/common/methods/vn-model/specs/getSetValues.spec.js b/loopback/common/methods/vn-model/specs/getSetValues.spec.js index a217a5211..d14a9113f 100644 --- a/loopback/common/methods/vn-model/specs/getSetValues.spec.js +++ b/loopback/common/methods/vn-model/specs/getSetValues.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Model getSetValues()', () => { it('should extend getSetValues properties to any model passed', () => { diff --git a/loopback/common/methods/vn-model/specs/rewriteDbError.spec.js b/loopback/common/methods/vn-model/specs/rewriteDbError.spec.js index 961d30e58..48b67528a 100644 --- a/loopback/common/methods/vn-model/specs/rewriteDbError.spec.js +++ b/loopback/common/methods/vn-model/specs/rewriteDbError.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Model rewriteDbError()', () => { it('should extend rewriteDbError properties to any model passed', () => { diff --git a/modules/claim/back/methods/claim-beginning/importToNewRefundTicket.spec.js b/modules/claim/back/methods/claim-beginning/importToNewRefundTicket.spec.js index 30a6a534b..da5d82480 100644 --- a/modules/claim/back/methods/claim-beginning/importToNewRefundTicket.spec.js +++ b/modules/claim/back/methods/claim-beginning/importToNewRefundTicket.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); // xcluded waiting for fixtures xdescribe('claimBeginning', () => { let ticket; diff --git a/modules/claim/back/methods/claim-end/specs/importTicketSales.spec.js b/modules/claim/back/methods/claim-end/specs/importTicketSales.spec.js index 120abff9e..37ad9f95f 100644 --- a/modules/claim/back/methods/claim-end/specs/importTicketSales.spec.js +++ b/modules/claim/back/methods/claim-end/specs/importTicketSales.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Claim importTicketSales()', () => { let claimEnds; diff --git a/modules/claim/back/methods/claim/specs/createFromSales.spec.js b/modules/claim/back/methods/claim/specs/createFromSales.spec.js index ebe35705f..3fd305a0b 100644 --- a/modules/claim/back/methods/claim/specs/createFromSales.spec.js +++ b/modules/claim/back/methods/claim/specs/createFromSales.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Claim Create', () => { let newDate = new Date(); diff --git a/modules/claim/back/methods/claim/specs/getSummary.spec.js b/modules/claim/back/methods/claim/specs/getSummary.spec.js index 39645b379..445903377 100644 --- a/modules/claim/back/methods/claim/specs/getSummary.spec.js +++ b/modules/claim/back/methods/claim/specs/getSummary.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('claim getSummary()', () => { it('should return summary with claim, salesClaimed, developments and actions defined ', async() => { diff --git a/modules/claim/back/methods/claim/specs/regularizeClaim.spec.js b/modules/claim/back/methods/claim/specs/regularizeClaim.spec.js index 817cbf578..0054c5697 100644 --- a/modules/claim/back/methods/claim/specs/regularizeClaim.spec.js +++ b/modules/claim/back/methods/claim/specs/regularizeClaim.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); // xcluded waiting for fixtures xdescribe('regularizeClaim()', () => { const claimFk = 1; diff --git a/modules/claim/back/methods/claim/specs/updateClaim.spec.js b/modules/claim/back/methods/claim/specs/updateClaim.spec.js index 9e9c8aa40..a3c91aef2 100644 --- a/modules/claim/back/methods/claim/specs/updateClaim.spec.js +++ b/modules/claim/back/methods/claim/specs/updateClaim.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Update Claim', () => { let newDate = new Date(); diff --git a/modules/client/back/methods/client/specs/activeWorkersWithRole.spec.js b/modules/client/back/methods/client/specs/activeWorkersWithRole.spec.js index 0070d0573..91742695c 100644 --- a/modules/client/back/methods/client/specs/activeWorkersWithRole.spec.js +++ b/modules/client/back/methods/client/specs/activeWorkersWithRole.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client activeWorkersWithRole', () => { it('should return the sales people as result', async() => { diff --git a/modules/client/back/methods/client/specs/addressesPropagateRe.spec.js b/modules/client/back/methods/client/specs/addressesPropagateRe.spec.js index 7c84d6072..007d5ef0f 100644 --- a/modules/client/back/methods/client/specs/addressesPropagateRe.spec.js +++ b/modules/client/back/methods/client/specs/addressesPropagateRe.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client addressesPropagateRe', () => { let client; diff --git a/modules/client/back/methods/client/specs/confirmTransaction.spec.js b/modules/client/back/methods/client/specs/confirmTransaction.spec.js index 9a2beb387..ec06e9b5c 100644 --- a/modules/client/back/methods/client/specs/confirmTransaction.spec.js +++ b/modules/client/back/methods/client/specs/confirmTransaction.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client confirmTransaction', () => { const transactionId = 2; diff --git a/modules/client/back/methods/client/specs/createWithUser.spec.js b/modules/client/back/methods/client/specs/createWithUser.spec.js index b9fc8aa3c..be69ce515 100644 --- a/modules/client/back/methods/client/specs/createWithUser.spec.js +++ b/modules/client/back/methods/client/specs/createWithUser.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client Create', () => { const clientName = 'Wade'; diff --git a/modules/client/back/methods/client/specs/getAverageInvoiced.spec.js b/modules/client/back/methods/client/specs/getAverageInvoiced.spec.js index fc26ed0dc..e1eef0124 100644 --- a/modules/client/back/methods/client/specs/getAverageInvoiced.spec.js +++ b/modules/client/back/methods/client/specs/getAverageInvoiced.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('client getAverageInvoiced()', () => { it('should call the getAverageInvoiced method', done => { diff --git a/modules/client/back/methods/client/specs/getCard.spec.js b/modules/client/back/methods/client/specs/getCard.spec.js index f06b2110a..896585096 100644 --- a/modules/client/back/methods/client/specs/getCard.spec.js +++ b/modules/client/back/methods/client/specs/getCard.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client card', () => { it('should call the card() method to receive a formated card of Bruce Wayne', async() => { diff --git a/modules/client/back/methods/client/specs/getDebt.spec.js b/modules/client/back/methods/client/specs/getDebt.spec.js index 7a4902978..19f7cd485 100644 --- a/modules/client/back/methods/client/specs/getDebt.spec.js +++ b/modules/client/back/methods/client/specs/getDebt.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); xdescribe('client getDebt()', () => { it('should return the client debt', async () => { diff --git a/modules/client/back/methods/client/specs/getMana.spec.js b/modules/client/back/methods/client/specs/getMana.spec.js index acded2661..4ac200a72 100644 --- a/modules/client/back/methods/client/specs/getMana.spec.js +++ b/modules/client/back/methods/client/specs/getMana.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('client getMana()', () => { it('should call the getMana method', async() => { diff --git a/modules/client/back/methods/client/specs/getTransactions.spec.js b/modules/client/back/methods/client/specs/getTransactions.spec.js index 7c415b351..f04cf9050 100644 --- a/modules/client/back/methods/client/specs/getTransactions.spec.js +++ b/modules/client/back/methods/client/specs/getTransactions.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client getTransations', () => { it('should call getTransations() method to receive a list of Web Payments from Bruce Wayne', async() => { diff --git a/modules/client/back/methods/client/specs/hasCustomerRole.spec.js b/modules/client/back/methods/client/specs/hasCustomerRole.spec.js index f62027805..87306afa7 100644 --- a/modules/client/back/methods/client/specs/hasCustomerRole.spec.js +++ b/modules/client/back/methods/client/specs/hasCustomerRole.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client hasCustomerRole', () => { it('should call the hasCustomerRole() method with a customer id', done => { diff --git a/modules/client/back/methods/client/specs/isValidClient.spec.js b/modules/client/back/methods/client/specs/isValidClient.spec.js index 6794c5cc6..f995bb7ab 100644 --- a/modules/client/back/methods/client/specs/isValidClient.spec.js +++ b/modules/client/back/methods/client/specs/isValidClient.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client isValidClient', () => { it('should call the isValidClient() method with a client id and receive true', done => { diff --git a/modules/client/back/methods/client/specs/listWorkers.spec.js b/modules/client/back/methods/client/specs/listWorkers.spec.js index d14903a18..545e00481 100644 --- a/modules/client/back/methods/client/specs/listWorkers.spec.js +++ b/modules/client/back/methods/client/specs/listWorkers.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client listWorkers', () => { it('should call the listWorkers()', done => { diff --git a/modules/client/back/methods/client/specs/summary.spec.js b/modules/client/back/methods/client/specs/summary.spec.js index 1e2e5de70..16527227f 100644 --- a/modules/client/back/methods/client/specs/summary.spec.js +++ b/modules/client/back/methods/client/specs/summary.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('client summary()', () => { it('should return a summary object containing data', async() => { diff --git a/modules/client/back/methods/client/specs/updateFiscalData.spec.js b/modules/client/back/methods/client/specs/updateFiscalData.spec.js index 93a19ccc5..84d6b9bad 100644 --- a/modules/client/back/methods/client/specs/updateFiscalData.spec.js +++ b/modules/client/back/methods/client/specs/updateFiscalData.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client updateFiscalData', () => { afterAll(async() => { diff --git a/modules/client/back/methods/credit-classification/createWithInsurance.spec.js b/modules/client/back/methods/credit-classification/createWithInsurance.spec.js index 69d492bf3..7fcbdb668 100644 --- a/modules/client/back/methods/credit-classification/createWithInsurance.spec.js +++ b/modules/client/back/methods/credit-classification/createWithInsurance.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Client createWithInsurance', () => { let classificationId; diff --git a/modules/client/back/methods/receipt/specs/filter.spec.js b/modules/client/back/methods/receipt/specs/filter.spec.js index e29ee6126..b0422bb28 100644 --- a/modules/client/back/methods/receipt/specs/filter.spec.js +++ b/modules/client/back/methods/receipt/specs/filter.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('receipt filter()', () => { it('should call the filter method', async () => { diff --git a/modules/client/back/models/specs/address.spec.js b/modules/client/back/models/specs/address.spec.js index 5f950aa3a..67e0e8e50 100644 --- a/modules/client/back/models/specs/address.spec.js +++ b/modules/client/back/models/specs/address.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('loopback model address', () => { let createdAddressId; diff --git a/modules/item/back/methods/item-tag/specs/filterItemTags.spec.js b/modules/item/back/methods/item-tag/specs/filterItemTags.spec.js index f85539df5..e1bfdb4c1 100644 --- a/modules/item/back/methods/item-tag/specs/filterItemTags.spec.js +++ b/modules/item/back/methods/item-tag/specs/filterItemTags.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('item filterItemTags()', () => { it('should filter ItemTags table', async () => { diff --git a/modules/item/back/methods/item/specs/clone.spec.js b/modules/item/back/methods/item/specs/clone.spec.js index be1281b35..8bae14133 100644 --- a/modules/item/back/methods/item/specs/clone.spec.js +++ b/modules/item/back/methods/item/specs/clone.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('item clone()', () => { let nextItemId; diff --git a/modules/item/back/methods/item/specs/filter.spec.js b/modules/item/back/methods/item/specs/filter.spec.js index 666762265..3e08e764d 100644 --- a/modules/item/back/methods/item/specs/filter.spec.js +++ b/modules/item/back/methods/item/specs/filter.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('item filter()', () => { it('should return 1 result using filter and tags', async() => { diff --git a/modules/item/back/methods/item/specs/getDiary.spec.js b/modules/item/back/methods/item/specs/getDiary.spec.js index d7e155c9e..17045b30b 100644 --- a/modules/item/back/methods/item/specs/getDiary.spec.js +++ b/modules/item/back/methods/item/specs/getDiary.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('item getShipped()', () => { it('should return 3 entries, the first one with the property balance -100', async() => { diff --git a/modules/item/back/methods/item/specs/getLastEntries.spec.js b/modules/item/back/methods/item/specs/getLastEntries.spec.js index 7b26ac78d..26d82a253 100644 --- a/modules/item/back/methods/item/specs/getLastEntries.spec.js +++ b/modules/item/back/methods/item/specs/getLastEntries.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('item getLastEntries()', () => { it('should return one entry for a given item', async () => { diff --git a/modules/item/back/methods/item/specs/getSummary.spec.js b/modules/item/back/methods/item/specs/getSummary.spec.js index 0a4103ef2..2dfa0cd99 100644 --- a/modules/item/back/methods/item/specs/getSummary.spec.js +++ b/modules/item/back/methods/item/specs/getSummary.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('item getSummary()', () => { it('should return summary with item, tags, botanical, niches, available and visible defined ', async() => { diff --git a/modules/item/back/methods/item/specs/new.spec.js b/modules/item/back/methods/item/specs/new.spec.js index 3f0f57b4d..27a459f12 100644 --- a/modules/item/back/methods/item/specs/new.spec.js +++ b/modules/item/back/methods/item/specs/new.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('item new()', () => { let item; diff --git a/modules/item/back/methods/item/specs/regularize.spec.js b/modules/item/back/methods/item/specs/regularize.spec.js index 5f9725adc..ce31f6d80 100644 --- a/modules/item/back/methods/item/specs/regularize.spec.js +++ b/modules/item/back/methods/item/specs/regularize.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('regularize()', () => { const itemFk = 1; diff --git a/modules/item/back/methods/item/specs/updateTaxes.spec.js b/modules/item/back/methods/item/specs/updateTaxes.spec.js index 69fa3068e..5176302ae 100644 --- a/modules/item/back/methods/item/specs/updateTaxes.spec.js +++ b/modules/item/back/methods/item/specs/updateTaxes.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('item updateTaxes()', () => { afterAll(async() => { diff --git a/modules/item/back/models/specs/item.spec.js b/modules/item/back/models/specs/item.spec.js index f6e82645b..9038c2e56 100644 --- a/modules/item/back/models/specs/item.spec.js +++ b/modules/item/back/models/specs/item.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('loopback model Item', () => { describe('availableId()', () => { diff --git a/modules/order/back/methods/order-row/specs/addToOrder.spec.js b/modules/order/back/methods/order-row/specs/addToOrder.spec.js index 12c2bf29a..e938cb859 100644 --- a/modules/order/back/methods/order-row/specs/addToOrder.spec.js +++ b/modules/order/back/methods/order-row/specs/addToOrder.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order addToOrder()', () => { let rowToDelete; diff --git a/modules/order/back/methods/order-row/specs/removes.spec.js b/modules/order/back/methods/order-row/specs/removes.spec.js index f8d144f99..510676aa0 100644 --- a/modules/order/back/methods/order-row/specs/removes.spec.js +++ b/modules/order/back/methods/order-row/specs/removes.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order removes()', () => { let row; diff --git a/modules/order/back/methods/order/specs/catalogFilter.spec.js b/modules/order/back/methods/order/specs/catalogFilter.spec.js index a2c145533..f36f9457b 100644 --- a/modules/order/back/methods/order/specs/catalogFilter.spec.js +++ b/modules/order/back/methods/order/specs/catalogFilter.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order catalogFilter()', () => { it('should return an array of items', async() => { let filter = { diff --git a/modules/order/back/methods/order/specs/getTaxes.spec.js b/modules/order/back/methods/order/specs/getTaxes.spec.js index e715515c5..5a14d3bdd 100644 --- a/modules/order/back/methods/order/specs/getTaxes.spec.js +++ b/modules/order/back/methods/order/specs/getTaxes.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order getTaxes()', () => { it('should call the getTaxes method and return undefined if its called with a string', async() => { diff --git a/modules/order/back/methods/order/specs/getTotal.spec.js b/modules/order/back/methods/order/specs/getTotal.spec.js index a34faaca6..b5a942024 100644 --- a/modules/order/back/methods/order/specs/getTotal.spec.js +++ b/modules/order/back/methods/order/specs/getTotal.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order getTotal()', () => { it('should return the total', async() => { diff --git a/modules/order/back/methods/order/specs/getTotalVolume.spec.js b/modules/order/back/methods/order/specs/getTotalVolume.spec.js index 3334f65d2..cad72fd8c 100644 --- a/modules/order/back/methods/order/specs/getTotalVolume.spec.js +++ b/modules/order/back/methods/order/specs/getTotalVolume.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order getTotalVolume()', () => { it('should return the total', async() => { diff --git a/modules/order/back/methods/order/specs/getVAT.spec.js b/modules/order/back/methods/order/specs/getVAT.spec.js index 1c2979d1d..6f9b3d55d 100644 --- a/modules/order/back/methods/order/specs/getVAT.spec.js +++ b/modules/order/back/methods/order/specs/getVAT.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order getVAT()', () => { it('should call the getVAT method and return the response', async() => { diff --git a/modules/order/back/methods/order/specs/getVolumes.spec.js b/modules/order/back/methods/order/specs/getVolumes.spec.js index 9919c00c5..881d17e93 100644 --- a/modules/order/back/methods/order/specs/getVolumes.spec.js +++ b/modules/order/back/methods/order/specs/getVolumes.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order getVolumes()', () => { it('should return the volumes of a given order id', async() => { diff --git a/modules/order/back/methods/order/specs/isEditable.spec.js b/modules/order/back/methods/order/specs/isEditable.spec.js index 7d04f8870..2a7b54225 100644 --- a/modules/order/back/methods/order/specs/isEditable.spec.js +++ b/modules/order/back/methods/order/specs/isEditable.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order isEditable()', () => { it('should return false when the given order is not editable', async() => { diff --git a/modules/order/back/methods/order/specs/new.spec.js b/modules/order/back/methods/order/specs/new.spec.js index 93588e408..f98cf6e40 100644 --- a/modules/order/back/methods/order/specs/new.spec.js +++ b/modules/order/back/methods/order/specs/new.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); let UserError = require('vn-loopback/util/user-error'); describe('order new()', () => { diff --git a/modules/order/back/methods/order/specs/summary.spec.js b/modules/order/back/methods/order/specs/summary.spec.js index 48c41462d..b0b142a89 100644 --- a/modules/order/back/methods/order/specs/summary.spec.js +++ b/modules/order/back/methods/order/specs/summary.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('order summary()', () => { it('should return a summary object containing data from 1 order', async() => { diff --git a/modules/order/back/methods/order/specs/updateBasicData.spec.js b/modules/order/back/methods/order/specs/updateBasicData.spec.js index 13ec9a7d1..0ef73f887 100644 --- a/modules/order/back/methods/order/specs/updateBasicData.spec.js +++ b/modules/order/back/methods/order/specs/updateBasicData.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('Order updateBasicData', () => { afterAll(async () => { diff --git a/modules/ticket/back/methods/packaging/specs/listPackaging.spec.js b/modules/ticket/back/methods/packaging/specs/listPackaging.spec.js index 86a0202a8..40ee40fb0 100644 --- a/modules/ticket/back/methods/packaging/specs/listPackaging.spec.js +++ b/modules/ticket/back/methods/packaging/specs/listPackaging.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket listPackaging()', () => { it('should call the listPackaging method and return the response', async () => { diff --git a/modules/ticket/back/methods/sale-tracking/specs/listSaleTracking.spec.js b/modules/ticket/back/methods/sale-tracking/specs/listSaleTracking.spec.js index 396fa42d0..eb8ea615c 100644 --- a/modules/ticket/back/methods/sale-tracking/specs/listSaleTracking.spec.js +++ b/modules/ticket/back/methods/sale-tracking/specs/listSaleTracking.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket listSaleTracking()', () => { it('should call the listSaleTracking method and return the response', async() => { diff --git a/modules/ticket/back/methods/sale/specs/getClaimableFromTicket.spec.js b/modules/ticket/back/methods/sale/specs/getClaimableFromTicket.spec.js index 486af39e0..7fed64ba2 100644 --- a/modules/ticket/back/methods/sale/specs/getClaimableFromTicket.spec.js +++ b/modules/ticket/back/methods/sale/specs/getClaimableFromTicket.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('sale getClaimableFromTicket()', () => { it('should return the claimable sales of a given ticket', async() => { diff --git a/modules/ticket/back/methods/sale/specs/moveToTicket.spec.js b/modules/ticket/back/methods/sale/specs/moveToTicket.spec.js index db4156b25..535df182a 100644 --- a/modules/ticket/back/methods/sale/specs/moveToTicket.spec.js +++ b/modules/ticket/back/methods/sale/specs/moveToTicket.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('sale moveToTicket()', () => { it('should throw an error if the ticket is not editable', async () => { diff --git a/modules/ticket/back/methods/sale/specs/priceDifference.spec.js b/modules/ticket/back/methods/sale/specs/priceDifference.spec.js index 106bb60aa..7f7867e30 100644 --- a/modules/ticket/back/methods/sale/specs/priceDifference.spec.js +++ b/modules/ticket/back/methods/sale/specs/priceDifference.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('sale priceDifference()', () => { it('should return ticket price differences', async() => { diff --git a/modules/ticket/back/methods/sale/specs/removes.spec.js b/modules/ticket/back/methods/sale/specs/removes.spec.js index 4f64ad4eb..fad607107 100644 --- a/modules/ticket/back/methods/sale/specs/removes.spec.js +++ b/modules/ticket/back/methods/sale/specs/removes.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('sale removes()', () => { let sale; diff --git a/modules/ticket/back/methods/sale/specs/reserve.spec.js b/modules/ticket/back/methods/sale/specs/reserve.spec.js index baee4b62b..076c09303 100644 --- a/modules/ticket/back/methods/sale/specs/reserve.spec.js +++ b/modules/ticket/back/methods/sale/specs/reserve.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('sale reserve()', () => { afterAll(async() => { diff --git a/modules/ticket/back/methods/sale/specs/updatePrice.spec.js b/modules/ticket/back/methods/sale/specs/updatePrice.spec.js index ab75014fe..6d84781e7 100644 --- a/modules/ticket/back/methods/sale/specs/updatePrice.spec.js +++ b/modules/ticket/back/methods/sale/specs/updatePrice.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('sale updatePrice()', () => { it('should throw an error if the price is not a number', async() => { diff --git a/modules/ticket/back/methods/sale/specs/updateQuantity.spec.js b/modules/ticket/back/methods/sale/specs/updateQuantity.spec.js index 74306aaeb..ccb73d779 100644 --- a/modules/ticket/back/methods/sale/specs/updateQuantity.spec.js +++ b/modules/ticket/back/methods/sale/specs/updateQuantity.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('sale updateQuantity()', () => { it('should throw an error if the quantity is not a number', async() => { diff --git a/modules/ticket/back/methods/ticket-tracking/specs/changeState.spec.js b/modules/ticket/back/methods/ticket-tracking/specs/changeState.spec.js index 1ac4ec14b..8e51a08ac 100644 --- a/modules/ticket/back/methods/ticket-tracking/specs/changeState.spec.js +++ b/modules/ticket/back/methods/ticket-tracking/specs/changeState.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket changeState()', () => { let ticket; diff --git a/modules/ticket/back/methods/ticket/specs/componentUpdate.spec.js b/modules/ticket/back/methods/ticket/specs/componentUpdate.spec.js index 242d2c123..e997a260d 100644 --- a/modules/ticket/back/methods/ticket/specs/componentUpdate.spec.js +++ b/modules/ticket/back/methods/ticket/specs/componentUpdate.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket componentUpdate()', () => { let firstvalueBeforeChange; diff --git a/modules/ticket/back/methods/ticket/specs/deleted.spec.js b/modules/ticket/back/methods/ticket/specs/deleted.spec.js index f8e9d7dbc..84cf5d57d 100644 --- a/modules/ticket/back/methods/ticket/specs/deleted.spec.js +++ b/modules/ticket/back/methods/ticket/specs/deleted.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket deleted()', () => { let ticket; diff --git a/modules/ticket/back/methods/ticket/specs/filter.spec.js b/modules/ticket/back/methods/ticket/specs/filter.spec.js index 1be814b86..3add4446b 100644 --- a/modules/ticket/back/methods/ticket/specs/filter.spec.js +++ b/modules/ticket/back/methods/ticket/specs/filter.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket filter()', () => { it('should call the filter method', async () => { diff --git a/modules/ticket/back/methods/ticket/specs/getLanded.spec.js b/modules/ticket/back/methods/ticket/specs/getLanded.spec.js index 6a1dc1123..d943f2caf 100644 --- a/modules/ticket/back/methods/ticket/specs/getLanded.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getLanded.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getLanded()', () => { it('should return a landing date', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/getSales.spec.js b/modules/ticket/back/methods/ticket/specs/getSales.spec.js index b70d4ce28..121b02195 100644 --- a/modules/ticket/back/methods/ticket/specs/getSales.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getSales.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getSales()', () => { it('should return the sales of a ticket', async () => { diff --git a/modules/ticket/back/methods/ticket/specs/getSalespersonMana.spec.js b/modules/ticket/back/methods/ticket/specs/getSalespersonMana.spec.js index 8d03f6c62..3d7e084be 100644 --- a/modules/ticket/back/methods/ticket/specs/getSalespersonMana.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getSalespersonMana.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getSalesPersonMana()', () => { it('should get the mana of a salesperson of a given ticket', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/getShipped.spec.js b/modules/ticket/back/methods/ticket/specs/getShipped.spec.js index 0dc3e2ff6..9e431eab1 100644 --- a/modules/ticket/back/methods/ticket/specs/getShipped.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getShipped.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getShipped()', () => { it('should return a shipment date', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/getTaxes.spec.js b/modules/ticket/back/methods/ticket/specs/getTaxes.spec.js index 2e650468c..fe0c91e92 100644 --- a/modules/ticket/back/methods/ticket/specs/getTaxes.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getTaxes.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getTaxes()', () => { it('should return the tax of a given ticket', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/getTotal.spec.js b/modules/ticket/back/methods/ticket/specs/getTotal.spec.js index 210b721fb..4bf10539e 100644 --- a/modules/ticket/back/methods/ticket/specs/getTotal.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getTotal.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getTotal()', () => { it('should return the total of a ticket', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/getTotalVolume.spec.js b/modules/ticket/back/methods/ticket/specs/getTotalVolume.spec.js index 73ec6e912..d1ba56e84 100644 --- a/modules/ticket/back/methods/ticket/specs/getTotalVolume.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getTotalVolume.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getTotalVolume()', () => { it('should return the total volume of a ticket', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/getVAT.spec.js b/modules/ticket/back/methods/ticket/specs/getVAT.spec.js index 5b6783944..8f80d9512 100644 --- a/modules/ticket/back/methods/ticket/specs/getVAT.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getVAT.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getVAT()', () => { it('should call the getVAT method and return the response', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/getVolume.spec.js b/modules/ticket/back/methods/ticket/specs/getVolume.spec.js index ca6c838e0..b512a978b 100644 --- a/modules/ticket/back/methods/ticket/specs/getVolume.spec.js +++ b/modules/ticket/back/methods/ticket/specs/getVolume.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket getVolume()', () => { it('should call the getVolume method', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/isEditable.spec.js b/modules/ticket/back/methods/ticket/specs/isEditable.spec.js index 35c8de4b8..87523dbf1 100644 --- a/modules/ticket/back/methods/ticket/specs/isEditable.spec.js +++ b/modules/ticket/back/methods/ticket/specs/isEditable.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket isEditable()', () => { it('should return false if the ticket given is not editable', async () => { diff --git a/modules/ticket/back/methods/ticket/specs/new.spec.js b/modules/ticket/back/methods/ticket/specs/new.spec.js index 4e180e375..ff5fa9d89 100644 --- a/modules/ticket/back/methods/ticket/specs/new.spec.js +++ b/modules/ticket/back/methods/ticket/specs/new.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket new()', () => { let ticket; diff --git a/modules/ticket/back/methods/ticket/specs/summary.spec.js b/modules/ticket/back/methods/ticket/specs/summary.spec.js index 85a38ad0c..34e6affba 100644 --- a/modules/ticket/back/methods/ticket/specs/summary.spec.js +++ b/modules/ticket/back/methods/ticket/specs/summary.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket summary()', () => { it('should return a summary object containing data from 1 ticket', async() => { diff --git a/modules/ticket/back/methods/ticket/specs/threeLastActive.spec.js b/modules/ticket/back/methods/ticket/specs/threeLastActive.spec.js index 988a42304..6e6416d78 100644 --- a/modules/ticket/back/methods/ticket/specs/threeLastActive.spec.js +++ b/modules/ticket/back/methods/ticket/specs/threeLastActive.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket threeLastActive()', () => { it('should return the last three active tickets', async() => { diff --git a/modules/ticket/back/models/specs/state.spec.js b/modules/ticket/back/models/specs/state.spec.js index 0bbb361e1..e6239c8bc 100644 --- a/modules/ticket/back/models/specs/state.spec.js +++ b/modules/ticket/back/models/specs/state.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('loopback model State', () => { describe('isAlertLevelZero()', () => { diff --git a/modules/ticket/back/models/specs/ticket-packaging.spec.js b/modules/ticket/back/models/specs/ticket-packaging.spec.js index 5b1dd02d7..f2834643d 100644 --- a/modules/ticket/back/models/specs/ticket-packaging.spec.js +++ b/modules/ticket/back/models/specs/ticket-packaging.spec.js @@ -1,4 +1,4 @@ -const app = require(`${serviceRoot}/server/server`); +const app = require('vn-loopback/server/server'); describe('ticket model TicketTracking', () => { let ticketTrackingId;