mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-26 13:08:28 -04:00
15 lines
281 B
JavaScript
15 lines
281 B
JavaScript
// __mocks__/chart.js
|
|
const Chart = jest.fn().mockImplementation((context, config) => {
|
|
console.log('Chart constructor called');
|
|
return {
|
|
data: config.data,
|
|
options: config.options,
|
|
resize: jest.fn(),
|
|
update: jest.fn(),
|
|
};
|
|
});
|
|
|
|
module.exports = {
|
|
Chart,
|
|
};
|