Skip to content
代码片段 群组 项目
提交 b2751d8c 编辑于 作者: Anshul Riyal's avatar Anshul Riyal
浏览文件

Avoid usage of toBeTruthy/toBeFalsy

上级 dfdec50e
No related branches found
No related tags found
无相关合并请求
......@@ -157,13 +157,13 @@ describe('GlModalVuex', () => {
const handler = modalFooterSlotContent.mock.calls[0][0][handlerName];
expect(wrapper.emitted(handlerName)).toBeFalsy();
expect(wrapper.emitted(handlerName)).toBeUndefined();
expect(actions.hide).not.toHaveBeenCalled();
handler();
expect(actions.hide).toHaveBeenCalledTimes(1);
expect(wrapper.emitted(handlerName)).toBeTruthy();
expect(wrapper.emitted(handlerName)).toHaveLength(1);
},
);
});
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册