Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Oct 25, 2021
1 parent dd4f158 commit 3100dcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions packages/wdio-jasmine-framework/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ class JasmineAdapter {
return reject(new Error('Jasmine not initiate yet'))
}

// @ts-expect-error
console.log(this._jrunner.env.beforeAll)
// @ts-expect-error
this._jrunner.env.beforeAll(this.wrapHook('beforeSuite'))
// @ts-expect-error
Expand Down
7 changes: 6 additions & 1 deletion packages/wdio-jasmine-framework/tests/adapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ const hookPayload = (type: string, error?: Error) => ({
fullName: `"${type} all" hook`,
properties: {},
start: expect.any(Date),
type: 'hook'
type: 'hook',
passedExpectations: [],
failedExpectations: [],
deprecationWarnings: [],
status: '',
pendingReason: ''
})

const adapterFactory = (config = {}) => new JasmineAdapter(
Expand Down

0 comments on commit 3100dcb

Please sign in to comment.