Commit b4950efd authored by Phil Hughes's avatar Phil Hughes

use toEqual instead of toBeFalsy/Truthy

parent e091352b
...@@ -86,21 +86,21 @@ describe('mrWidgetOptions', () => { ...@@ -86,21 +86,21 @@ describe('mrWidgetOptions', () => {
vm.mr.canRemoveSourceBranch = false; vm.mr.canRemoveSourceBranch = false;
vm.mr.shouldRemoveSourceBranch = true; 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', () => { it('should return false when can remove source branch and branch will be removed', () => {
vm.mr.canRemoveSourceBranch = true; vm.mr.canRemoveSourceBranch = true;
vm.mr.shouldRemoveSourceBranch = 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', () => { it('should return false when cannot remove source branch and branch will not be removed', () => {
vm.mr.canRemoveSourceBranch = false; vm.mr.canRemoveSourceBranch = false;
vm.mr.shouldRemoveSourceBranch = false; vm.mr.shouldRemoveSourceBranch = false;
expect(vm.shouldRenderSourceBranchRemovalStatus).toBeFalsy(); expect(vm.shouldRenderSourceBranchRemovalStatus).toEqual(false);
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment