refactor(item): activeBuyer.spec.js
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f27420c14a
commit
6fa60e597a
|
@ -38,7 +38,6 @@ module.exports = Self => {
|
|||
null, myOptions);
|
||||
|
||||
stmt.merge(conn.makeSuffix(filter));
|
||||
console.log(stmt);
|
||||
|
||||
return conn.executeStmt(stmt);
|
||||
};
|
||||
|
|
|
@ -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];
|
||||
|
Loading…
Reference in New Issue