Skip to content

Commit fbb5893

Browse files
No need to wrap clearStore
1 parent a1f67b5 commit fbb5893

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

test/unit/tabs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('tabWidget', () => {
4242
})
4343
})
4444

45-
afterAll(() => clearStore())
45+
afterAll(clearStore)
4646

4747
it('creates an element', () => {
4848
expect(tabWidgetElement.tagName).toEqual('DIV')
@@ -147,7 +147,7 @@ describe('tabWidget', () => {
147147
})
148148

149149
describe('option ordered', () => {
150-
afterAll(() => clearStore())
150+
afterAll(clearStore)
151151

152152
it('allows for tabs to be fetched from triples instead of a collection', () => {
153153
const predicate = meeting('toolList')

test/unit/widgets/buttons.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ describe('findImage', () => {
183183
const subject = sym('https://domain.tld/#test')
184184
const imageObject = sym('https://domain.tld/#image')
185185

186-
afterEach(() => clearStore())
186+
afterEach(clearStore)
187187

188188
it('exists', () => {
189189
expect(findImage).toBeInstanceOf(Function)

test/unit/widgets/forms/fieldFunction.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import {
99
} from '../../../../src/widgets/forms/fieldFunction'
1010
import { clearStore } from '../../helpers/clearStore'
1111

12-
afterEach(() => {
13-
clearStore()
14-
})
12+
afterEach(clearStore)
1513

1614
describe('mostSpecificClassURI', () => {
1715
it('exists', () => {

0 commit comments

Comments
 (0)