Skip to content

Commit

Permalink
test: mock app.log.trace / app.log.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 16, 2020
1 parent a627728 commit c9fb5ad
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/integration/free-plan-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ beforeEach(function (done) {
this.app.auth = () => Promise.resolve(this.githubMock)
this.logMock = simple.mock()
this.logMock.info = simple.mock()
this.logMock.trace = simple.mock()
this.logMock.warn = simple.mock()
this.logMock.error = simple.mock().callFn(console.log)
this.logMock.child = simple.mock().returnWith(this.logMock)
this.app.log = this.logMock
Expand Down
2 changes: 2 additions & 0 deletions test/integration/installation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ beforeEach(function (done) {
this.app.auth = () => Promise.resolve(this.githubMock)
this.logMock = simple.mock()
this.logMock.debug = simple.mock()
this.logMock.trace = simple.mock()
this.logMock.info = simple.mock()
this.logMock.warn = simple.mock()
this.logMock.error = simple.mock().callFn(console.log)
this.logMock.child = simple.mock().returnWith(this.logMock)
this.app.log = this.logMock
Expand Down
2 changes: 2 additions & 0 deletions test/integration/legacy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ beforeEach(function (done) {
this.app.auth = () => Promise.resolve(this.githubMock)
this.logMock = simple.mock()
this.logMock.info = simple.mock()
this.logMock.trace = simple.mock()
this.logMock.warn = simple.mock()
this.logMock.error = simple.mock().callFn(console.log)
this.logMock.child = simple.mock().returnWith(this.logMock)
this.app.log = this.logMock
Expand Down
1 change: 1 addition & 0 deletions test/integration/marketplace-purchase-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ beforeEach(function (done) {
this.app.auth = () => Promise.resolve(this.githubMock)
this.logMock = simple.mock()
this.logMock.debug = simple.mock()
this.logMock.trace = simple.mock()
this.logMock.info = simple.mock()
this.logMock.error = simple.mock().callFn(console.log)
this.logMock.child = simple.mock().returnWith(this.logMock)
Expand Down
2 changes: 2 additions & 0 deletions test/integration/pro-plan-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ beforeEach(function (done) {
}
this.app.auth = () => Promise.resolve(this.githubMock)
this.logMock = simple.mock()
this.logMock.trace = simple.mock()
this.logMock.info = simple.mock()
this.logMock.warn = simple.mock()
this.logMock.error = simple.mock().callFn(console.log)
this.logMock.child = simple.mock().returnWith(this.logMock)
this.app.log = this.logMock
Expand Down

0 comments on commit c9fb5ad

Please sign in to comment.