From cd623b3525920e98eb965869562eb2241492b94d Mon Sep 17 00:00:00 2001 From: vuhuucuong Date: Mon, 3 Feb 2020 17:47:02 +0700 Subject: [PATCH] fix: #48 fix test file --- .../aml-checklist/src/utils/__tests__/error-logger.ts | 11 ++++++----- .../geo-diary/src/utils/__tests__/error-logger.ts | 11 ++++++----- .../src/utils/__tests__/error-logger.ts | 11 ++++++----- .../marketplace/src/utils/__tests__/error-logger.ts | 11 ++++++----- 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/packages/aml-checklist/src/utils/__tests__/error-logger.ts b/packages/aml-checklist/src/utils/__tests__/error-logger.ts index 5868f4629e..a3fb702c24 100644 --- a/packages/aml-checklist/src/utils/__tests__/error-logger.ts +++ b/packages/aml-checklist/src/utils/__tests__/error-logger.ts @@ -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) + }) }) diff --git a/packages/geo-diary/src/utils/__tests__/error-logger.ts b/packages/geo-diary/src/utils/__tests__/error-logger.ts index 5868f4629e..a3fb702c24 100644 --- a/packages/geo-diary/src/utils/__tests__/error-logger.ts +++ b/packages/geo-diary/src/utils/__tests__/error-logger.ts @@ -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) + }) }) diff --git a/packages/lifetime-legal/src/utils/__tests__/error-logger.ts b/packages/lifetime-legal/src/utils/__tests__/error-logger.ts index 5868f4629e..a3fb702c24 100644 --- a/packages/lifetime-legal/src/utils/__tests__/error-logger.ts +++ b/packages/lifetime-legal/src/utils/__tests__/error-logger.ts @@ -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) + }) }) diff --git a/packages/marketplace/src/utils/__tests__/error-logger.ts b/packages/marketplace/src/utils/__tests__/error-logger.ts index 5868f4629e..a3fb702c24 100644 --- a/packages/marketplace/src/utils/__tests__/error-logger.ts +++ b/packages/marketplace/src/utils/__tests__/error-logger.ts @@ -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) + }) })