Skip to content

Commit

Permalink
tests: refactors well mixin setup in Wells spec
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTopping committed Jun 4, 2024
1 parent 368a3e7 commit 4f24839
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/Wells.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ describe('Wells', () => {

describe('Well mixin', () => {
beforeEach(() => {
const mockWell = {
render() {},
}
data = {
row: 'B',
column: '8',
Expand All @@ -29,12 +32,9 @@ describe('Wells', () => {
},
extraFields: { type: 'type' },
}
cmp = mount(Wells, {
cmp = mount(mockWell, {
mixins: [WellProperties],
props: data,
render() {
return null
},
})
well = cmp.vm
})
Expand Down

0 comments on commit 4f24839

Please sign in to comment.