Add OSHA Form 301 and Osha page components
- Implemented Form301 component for displaying OSHA Form 301 equivalent, including employee and case information. - Created Osha component to manage OSHA recordkeeping, including tabs for 300 Log, 300A Summary, Hours & rates, and Submit to OSHA. - Added functionality for printing and downloading CSV files for OSHA submissions. - Integrated loading and error handling states for data fetching.
This commit is contained in:
1 parent
3e964d1176
commit
61c876edec
59 files changed
+9180
-183
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { niceTicks } from './scale'
|
||||
|
||||
describe('niceTicks', () => {
|
||||
it('produces round steps that cover the maximum', () => {
|
||||
expect(niceTicks(7)).toEqual([0, 2, 4, 6, 8])
|
||||
expect(niceTicks(23)).toEqual([0, 10, 20, 30])
|
||||
expect(niceTicks(1.3)).toEqual([0, 0.5, 1, 1.5])
|
||||
expect(niceTicks(0)).toEqual([0, 1])
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user