feat: include steps on json and csv exports (#336)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user