Skip to content

Commit

Permalink
improve linting
Browse files Browse the repository at this point in the history
  • Loading branch information
wilk committed Oct 2, 2018
1 parent 66a930d commit 3bc3b2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __tests__/context.ts
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions __tests__/data.ts
Expand Up @@ -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
Expand Down Expand Up @@ -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()
})
Expand Down
6 changes: 3 additions & 3 deletions __tests__/job.ts
Expand Up @@ -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()
})
Expand All @@ -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
Expand All @@ -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()
})
Expand Down

0 comments on commit 3bc3b2f

Please sign in to comment.