Skip to content

Commit

Permalink
test: use new ref/refs naming
Browse files Browse the repository at this point in the history
arnoson committed Feb 21, 2023
1 parent cb259d4 commit 01d90a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ it('mounts a component', () => {
div.dataset.simpleComponent = 'test'

mountComponent(div)
expect(component).toBeCalledWith({ el: div, ref: {}, refs: {} })
expect(component).toBeCalledWith({ el: div, refs: {}, refsAll: {} })
})

it('mounts multiple components', () => {
@@ -63,7 +63,7 @@ it(`doesn't walk elements with data-simple-ignore attribute`, () => {
expect(component).toBeCalledWith(expect.objectContaining({ refs: {} }))
})

it.only('provides a record of single refs', () => {
it('provides a record of single refs', () => {
const component = vi.fn()
registerComponent('test', component)

@@ -82,7 +82,7 @@ it.only('provides a record of single refs', () => {
expect(component).toBeCalledWith(expect.objectContaining({ refs: { myRef } }))
})

it.only('provides a record of groups of refs with the same name', () => {
it('provides a record of groups of refs with the same name', () => {
const component = vi.fn()
registerComponent('test', component)

0 comments on commit 01d90a9

Please sign in to comment.