1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-11 20:15:01 +00:00
mon-entreprise/site/test/fabrique-social.test.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
694 B
TypeScript
Raw Normal View History

import { describe, expect, it } from 'vitest'
import { getSiegeOrFirstEtablissement } from '@/api/fabrique-social'
import {
fabriqueSocialWithoutSiege,
fabriqueSocialWithSiege,
} from './fabrique-social.fixtures'
describe('Fabrique Social', () => {
describe('getSiegeOrFirstEtablissement Function', () => {
it('should return siege', () => {
const siege = getSiegeOrFirstEtablissement(fabriqueSocialWithSiege)
expect(siege.address).to.equal('23 RUE DE MOGADOR 75009 PARIS 9')
})
it('should return FirstEtablissement', () => {
const siege = getSiegeOrFirstEtablissement(fabriqueSocialWithoutSiege)
expect(siege.address).to.equal('4 RUE VOLTAIRE 44000 NANTES')
})
})
})