Skip to content

Commit

Permalink
fix messages mock in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philippotto committed Dec 18, 2024
1 parent d13abc2 commit da9cead
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/javascripts/test/sagas/saga_integration.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ mockRequire("antd", {
...antd,
Dropdown: {},
message: {
show: () => {},
hide: () => {},
loading: () => {},
success: () => {},
// These return a "hide function"
show: () => () => {},
loading: () => () => {},
success: () => () => {},
},
});

Expand Down

0 comments on commit da9cead

Please sign in to comment.