use toEqual instead of toBeFalsy/Truthy

This commit is contained in:
Phil Hughes 2018-03-09 09:29:27 +00:00
parent e091352bff
commit b4950efd46
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
1 changed files with 3 additions and 3 deletions

View File

@ -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);
});
});