refactor(item): activeBuyer.spec.js
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2021-11-16 14:13:15 +01:00
parent f27420c14a
commit 6fa60e597a
2 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,6 @@ module.exports = Self => {
null, myOptions);
stmt.merge(conn.makeSuffix(filter));
console.log(stmt);
return conn.executeStmt(stmt);
};

View File

@ -1,13 +1,13 @@
const models = require('vn-loopback/server/server').models;
describe('Worker activeWithBuyer', () => {
describe('Worker activeBuyers', () => {
it('should return the buyers in itemType as result', async() => {
const tx = await models.Item.beginTransaction({});
try {
const options = {transaction: tx};
const filter = {};
const result = await models.Item.activeWithBuyer(filter, options);
const result = await models.Item.activeBuyers(filter, options);
const firstWorker = result[0];
const secondWorker = result[1];