Skip to content

Commit

Permalink
make dockest opts optional (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikengervall authored Sep 10, 2021
1 parent 94bac6f commit f8e905f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/dockest/src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ describe('index', () => {
}
`)
})

it('should be able to instantiate Dockest without options', () => {
new allTheStuff.Dockest()
})
})
})
2 changes: 1 addition & 1 deletion packages/dockest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export { DockestService } from './@types'
export class Dockest {
private config: DockestConfig

public constructor(opts: Partial<DockestOpts>) {
public constructor(opts?: Partial<DockestOpts>) {
this.config = getOpts(opts)

Logger.logLevel = this.config.logLevel
Expand Down

0 comments on commit f8e905f

Please sign in to comment.