Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
anis committed Sep 16, 2024
1 parent c00db8c commit 3b47e68
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions packages/common/src/heritage.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { test, expect, describe } from 'vitest'
import { EtapeHeritageProps, isHeritageProps } from './heritage'

describe('isHeritageProps', () => {
test('la string "camino" n\'est pas une heritageProp', () => {
expect(isHeritageProps('camino')).toBe(false)
})

test.each<EtapeHeritageProps>(['titulaires', 'amodiataires', 'dateDebut', 'dateFin', 'duree', 'substances', 'perimetre'])('%s est une heritageProp', prop => {
expect(isHeritageProps(prop)).toBe(true)
})
})
8 changes: 4 additions & 4 deletions packages/common/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export default defineConfig({
thresholds: {
// the endgame is to put thresholds at 100 and never touch it again :)
autoUpdate: true,
branches: 90.81,
functions: 82.67,
lines: 96.51,
statements: 96.51,
branches: 90.91,
functions: 83.07,
lines: 96.58,
statements: 96.58,
perFile: false,
},
},
Expand Down

0 comments on commit 3b47e68

Please sign in to comment.