fix: refs #7965 filter and sales back tests
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
568661021a
commit
8fedd78938
|
@ -80,11 +80,11 @@ describe('ticket filter()', () => {
|
|||
const result = await models.Ticket.filter(ctx, filter, options);
|
||||
|
||||
result.forEach(ticket => {
|
||||
expect(ticket.isFreezed).toEqual(null);
|
||||
expect(ticket.hasRisk).toEqual(null);
|
||||
expect(ticket.hasTicketRequest).toEqual(null);
|
||||
expect(ticket.hasItemShortage).toEqual(null);
|
||||
expect(ticket.hasRounding).toEqual(null);
|
||||
expect(ticket.isFreezed).toEqual(0);
|
||||
expect(ticket.hasRisk).toEqual(0);
|
||||
expect(ticket.hasTicketRequest).toEqual(0);
|
||||
expect(ticket.hasItemShortage).toEqual(0);
|
||||
expect(ticket.hasRounding).toEqual(0);
|
||||
});
|
||||
|
||||
await tx.rollback();
|
||||
|
|
|
@ -15,7 +15,6 @@ describe('ticket getSales()', () => {
|
|||
expect(sales[1].item).toBeDefined();
|
||||
expect(sales[2].item).toBeDefined();
|
||||
expect(sales[3].item).toBeDefined();
|
||||
expect(sales[0].claim).toBeDefined();
|
||||
|
||||
await tx.rollback();
|
||||
} catch (e) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const models = require('vn-loopback/server/server').models;
|
||||
|
||||
fdescribe('ticket getTicketProblems()', () => {
|
||||
describe('ticket getTicketProblems()', () => {
|
||||
const ctx = {req: {accessToken: 9}};
|
||||
it('should return the problems of a ticket', async() => {
|
||||
const tx = await models.Ticket.beginTransaction({});
|
||||
|
|
Loading…
Reference in New Issue