Skip to content

Commit

Permalink
test: EmployeesState.cy.ts
Browse files Browse the repository at this point in the history
  GIVEN not blank employee
  WHEN called isBlankEmployee property
  THEN return false
  • Loading branch information
akovylyaeva committed Jun 28, 2024
1 parent 3c4d99e commit 5dd1f5b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/features/employees/state/EmployeesState.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,15 @@ describe('EmployeesState', () => {
employeesState.updateSearchTerm('text');
expect(employeesState.searchTerm).eq('text');
});

it(`
GIVEN not blank employee
WHEN called isBlankEmployee property
THEN return false
`, () => {
employeesState.changeEmployees([
getEmployee({}),
]);
expect(employeesState.isBlankEmployees).eq(false);
});
});

0 comments on commit 5dd1f5b

Please sign in to comment.