-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace getEmployee function for tests to utils
- Loading branch information
1 parent
5dd1f5b
commit 9a906bd
Showing
3 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Employee } from '../types'; | ||
|
||
export function getEmployee({ ...props }: Partial<Employee>) { | ||
return { | ||
employeeId: 1, | ||
fullName: 'name', | ||
corporateEmail: 'email', | ||
personalEmail: 'personal email', | ||
phone: '79111111111', | ||
gitHub: 'github', | ||
gitLab: 'gitlab', | ||
netSalary: 100, | ||
ratePerHour: 101, | ||
fullSalary: 102, | ||
employmentType: 0.5, | ||
parking: 103, | ||
personnelNumber: '11/23', | ||
hireDate: '11.11.23', | ||
isCurrentEmployee: true, | ||
isBlankEmployee: false, | ||
...props, | ||
}; | ||
} |