Skip to content

Commit

Permalink
Minor fix in jest tests declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
gael-ian committed May 20, 2024
1 parent 01b9620 commit 388ed27
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ import { faker } from '@cocooned/tests/support/faker'

describe('Builder', () => {
given('extended', () => coreMixin(Base))
given('builder', () => new Builder(given.template.content, given.replacements))
given('builder', () => {
return new Builder(
given.template.content,
given.extended.replacementsFor('new_person')
)
})
given('id', () => faker.string.numeric(5))
given('replacements', () => given.extended.replacementsFor('new_person'))

const replacements = [
{
Expand Down

0 comments on commit 388ed27

Please sign in to comment.