Skip to content

Commit

Permalink
fix(tests): abstract store test types
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Aug 1, 2023
1 parent d928894 commit 0ddd097
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/abstract_store.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { IPublishPacket, IPubrelPacket } from 'mqtt-packet'
import Store from '../src/lib/store'
import { IStore } from '../src/lib/store'
import 'should'

export default function abstractStoreTest(build) {
let store: Store
export default function abstractStoreTest(
build: (cb: (err?: Error, store?: IStore) => void) => void,
) {
let store: IStore

// eslint-disable-next-line
beforeEach(function (done) {
beforeEach(function (done) {
build((err, _store) => {
store = _store
done(err)
Expand Down

0 comments on commit 0ddd097

Please sign in to comment.