Merge branch 'dev' of https://git.verdnatura.es/salix into dev

This commit is contained in:
gerard 2018-09-18 09:38:04 +02:00
commit 629df353ec
2 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,7 @@ describe('order catalogFilter()', () => {
order: 'relevancy DESC, name'
};
let args = {
orderFk: 4,
orderFk: 3,
categoryFk: 1,
typeFk: 2
};
@ -23,7 +23,7 @@ describe('order catalogFilter()', () => {
order: 'relevancy DESC, name'
};
let args = {
orderFk: 4,
orderFk: 3,
categoryFk: 1,
typeFk: 2
};

View File

@ -2,6 +2,12 @@ const app = require(`${servicesDir}/order/server/server`);
const UserError = require('vn-loopback/common/helpers').UserError;
describe('order new()', () => {
let orderId;
afterAll(async() => {
await app.models.Order.destroyById(orderId);
});
it('should throw an error if the client is frozen', async() => {
let error;
let params = {addressFk: 121};
@ -57,7 +63,7 @@ describe('order new()', () => {
addressFk: 125
};
let orderId = await app.models.Order.new(params);
orderId = await app.models.Order.new(params);
let highestOrderIdInFixtures = 3;