Skip to content

Commit

Permalink
fix: use the publicodes Situation type
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileRolley committed Jun 3, 2024
1 parent 71c7830 commit af8380e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/migration/migrateSituation.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { Situation } from 'publicodes'
import { RuleName } from '../../src'
import {
migrateSituation,
Migration,
Situation,
} from '../../src/migration/migrateSituation'

const instructions: Migration = {
keysToMigrate: { age: 'âge', 'année de naissance': '' },
valuesToMigrate: { prénom: { jean: 'Jean avec un J', michel: '' } },
}

const migrateSituationWithInstructions = (situation: Situation) =>
const migrateSituationWithInstructions = (situation: Situation<RuleName>) =>
migrateSituation(situation, instructions)

describe('migrateSituation', () => {
Expand Down

0 comments on commit af8380e

Please sign in to comment.