使用Redux-Thunk(Moxios-Jest-Enzyme)进行Axios测试

时间:2020-03-31 10:39:17

标签: redux jestjs axios redux-thunk moxios

我有一个动作( redux-thunk ),我想对其进行测试。
实际上,我使用 Axios 连接数据库。
如何测试此动作?
这是代码。

ggplot() + 
  geom_bar(mapping = aes(x = sample$Month, y = sample$Reactions), stat = 'identity') +
  geom_line(mapping = aes(x = sample$Month , y = sample$Ratio), size = 2, color = "red") + 
  scale_y_continuous(name = "Reactions per Month", sec.axis = sec_axis(trans = ~./20, name = "Reactions/ post"))

谢谢)

0 个答案:

没有答案