feat: include steps on json and csv exports (#336)

This commit is contained in:
Matheus Santana
2025-11-15 06:10:03 -03:00
committed by GitHub
parent 28edee590c
commit 068e077805
2 changed files with 88 additions and 13 deletions

View File

@@ -37,11 +37,19 @@ vi.mock('../../middleware/verifyVisible.js', () => ({
// mock defineCase
const mockCase = {
findAll: vi.fn(),
belongsToMany: vi.fn(),
};
vi.mock('../../models/cases.js', () => ({
default: () => mockCase,
}));
const mockStep = {
belongsToMany: vi.fn(),
};
vi.mock('../../models/steps.js', () => ({
default: () => mockStep,
}));
describe('GET /download with type=csv', () => {
let app;
const sequelize = new Sequelize({