diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-09 09:29:27 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-09 09:29:27 +0000 |
commit | b4950efd461e5d2f39211f898857f39c0fc9af3b (patch) | |
tree | 7b64d46a07c348b4b0a190602c83d3bb851b879c | |
parent | e091352bffe0aab0c4d7a1a1c7c74bbbc769de17 (diff) | |
download | gitlab-ce-b4950efd461e5d2f39211f898857f39c0fc9af3b.tar.gz |
use toEqual instead of toBeFalsy/Truthy
-rw-r--r-- | spec/javascripts/vue_mr_widget/mr_widget_options_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/vue_mr_widget/mr_widget_options_spec.js b/spec/javascripts/vue_mr_widget/mr_widget_options_spec.js index 13c8a0ac19f..3e310980ffa 100644 --- a/spec/javascripts/vue_mr_widget/mr_widget_options_spec.js +++ b/spec/javascripts/vue_mr_widget/mr_widget_options_spec.js @@ -86,21 +86,21 @@ describe('mrWidgetOptions', () => { vm.mr.canRemoveSourceBranch = false; vm.mr.shouldRemoveSourceBranch = true; - expect(vm.shouldRenderSourceBranchRemovalStatus).toBeTruthy(); + expect(vm.shouldRenderSourceBranchRemovalStatus).toEqual(true); }); it('should return false when can remove source branch and branch will be removed', () => { vm.mr.canRemoveSourceBranch = true; vm.mr.shouldRemoveSourceBranch = true; - expect(vm.shouldRenderSourceBranchRemovalStatus).toBeFalsy(); + expect(vm.shouldRenderSourceBranchRemovalStatus).toEqual(false); }); it('should return false when cannot remove source branch and branch will not be removed', () => { vm.mr.canRemoveSourceBranch = false; vm.mr.shouldRemoveSourceBranch = false; - expect(vm.shouldRenderSourceBranchRemovalStatus).toBeFalsy(); + expect(vm.shouldRenderSourceBranchRemovalStatus).toEqual(false); }); }); |