From 3bc3b2f62c223c806f40a7ebe43e84a1666e977a Mon Sep 17 00:00:00 2001 From: wilk Date: Tue, 2 Oct 2018 23:09:21 +0200 Subject: [PATCH] improve linting --- __tests__/context.ts | 2 +- __tests__/data.ts | 4 ++-- __tests__/job.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/__tests__/context.ts b/__tests__/context.ts index 6be5ef7..109627b 100644 --- a/__tests__/context.ts +++ b/__tests__/context.ts @@ -18,7 +18,7 @@ describe('Job Context Testing', () => { nested: 'deep'/*, date: new Date()*/ }, - //date: new Date(), + // date: new Date(), arr: [10, 20, 'meh'], myClass: Foo, myInstance: new Foo() diff --git a/__tests__/data.ts b/__tests__/data.ts index 899dcbc..67c58e6 100644 --- a/__tests__/data.ts +++ b/__tests__/data.ts @@ -27,7 +27,7 @@ describe('Job Data Testing', () => { expect(error).toBeUndefined() expect(res).toEqual(data) }) - + it('should throw a serialization error when passing a function', async () => { let error let res @@ -55,7 +55,7 @@ describe('Job Data Testing', () => { } expect(error).toBeDefined() - expect(error.message).toEqual("class {\n } could not be cloned.") + expect(error.message).toEqual('class {\n } could not be cloned.') expect(typeof error.stack).toBe('string') expect(res).toBeUndefined() }) diff --git a/__tests__/job.ts b/__tests__/job.ts index 5990e9e..91d18a6 100644 --- a/__tests__/job.ts +++ b/__tests__/job.ts @@ -70,7 +70,7 @@ describe('Job Testing', () => { } expect(error).toBeDefined() - expect(error.message).toEqual("an exception") + expect(error.message).toEqual('an exception') expect(typeof error.stack).toBe('string') expect(res).toBeUndefined() }) @@ -91,7 +91,7 @@ describe('Job Testing', () => { expect(typeof error.stack).toBe('string') expect(res).toBeUndefined() }) - + it('should throw a serialization error when a class is given back to main thread', async () => { let error let res @@ -103,7 +103,7 @@ describe('Job Testing', () => { } expect(error).toBeDefined() - expect(error.message).toEqual("class Person {\n } could not be cloned.") + expect(error.message).toEqual('class Person {\n } could not be cloned.') expect(typeof error.stack).toBe('string') expect(res).toBeUndefined() })