Skip to content

Commit

Permalink
fix: #48 fix test file
Browse files Browse the repository at this point in the history
  • Loading branch information
vuhuucuong committed Feb 12, 2020
1 parent 776cc79 commit cd623b3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
11 changes: 6 additions & 5 deletions packages/aml-checklist/src/utils/__tests__/error-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ describe('logger', () => {
logger(error)
expect(Sentry.captureException).toHaveBeenCalledWith(error)
})
})
it('should call console.err on development', () => {
process.env.NODE_ENV = 'development'
logger(error)
expect(spy).toHaveBeenCalledWith(error)

it('should call console.err on development', () => {
process.env.NODE_ENV = 'development'
logger(error)
expect(spy).toHaveBeenCalledWith(error)
})
})
11 changes: 6 additions & 5 deletions packages/geo-diary/src/utils/__tests__/error-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ describe('logger', () => {
logger(error)
expect(Sentry.captureException).toHaveBeenCalledWith(error)
})
})
it('should call console.err on development', () => {
process.env.NODE_ENV = 'development'
logger(error)
expect(spy).toHaveBeenCalledWith(error)

it('should call console.err on development', () => {
process.env.NODE_ENV = 'development'
logger(error)
expect(spy).toHaveBeenCalledWith(error)
})
})
11 changes: 6 additions & 5 deletions packages/lifetime-legal/src/utils/__tests__/error-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ describe('logger', () => {
logger(error)
expect(Sentry.captureException).toHaveBeenCalledWith(error)
})
})
it('should call console.err on development', () => {
process.env.NODE_ENV = 'development'
logger(error)
expect(spy).toHaveBeenCalledWith(error)

it('should call console.err on development', () => {
process.env.NODE_ENV = 'development'
logger(error)
expect(spy).toHaveBeenCalledWith(error)
})
})
11 changes: 6 additions & 5 deletions packages/marketplace/src/utils/__tests__/error-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ describe('logger', () => {
logger(error)
expect(Sentry.captureException).toHaveBeenCalledWith(error)
})
})
it('should call console.err on development', () => {
process.env.NODE_ENV = 'development'
logger(error)
expect(spy).toHaveBeenCalledWith(error)

it('should call console.err on development', () => {
process.env.NODE_ENV = 'development'
logger(error)
expect(spy).toHaveBeenCalledWith(error)
})
})

0 comments on commit cd623b3

Please sign in to comment.