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

Merge branch '369835-avoid-usage-of-toBeTruthy/toBeFalsy' into 'master'

Avoid usage of toBeTruthy/toBeFalsy

See merge request gitlab-org/gitlab!94470
No related branches found
No related tags found
无相关合并请求
...@@ -157,13 +157,13 @@ describe('GlModalVuex', () => { ...@@ -157,13 +157,13 @@ describe('GlModalVuex', () => {
const handler = modalFooterSlotContent.mock.calls[0][0][handlerName]; const handler = modalFooterSlotContent.mock.calls[0][0][handlerName];
expect(wrapper.emitted(handlerName)).toBeFalsy(); expect(wrapper.emitted(handlerName)).toBeUndefined();
expect(actions.hide).not.toHaveBeenCalled(); expect(actions.hide).not.toHaveBeenCalled();
handler(); handler();
expect(actions.hide).toHaveBeenCalledTimes(1); 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.
先完成此消息的编辑!
想要评论请 注册