Merge branch 'dev' of https://git.verdnatura.es/salix into dev
This commit is contained in:
commit
629df353ec
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue