Skip to content

Commit

Permalink
Disables eslint jest/no-standalone-expect for afterEach blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpurvis committed May 20, 2020
1 parent 04b57da commit a302baa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/app/models/gltf-loader.spec.js
Expand Up @@ -17,6 +17,7 @@ describe('GLTFLoader', () => {
data = 'mockData'
})
afterEach(() => {
// eslint-disable-next-line jest/no-standalone-expect
expect(THREEGLTFLoader.prototype.parse).toHaveBeenCalledWith(
data,
'/',
Expand Down
1 change: 1 addition & 0 deletions spec/app/models/texture-loader.spec.js
Expand Up @@ -28,6 +28,7 @@ describe('TextureLoader', () => {
url = 'http://example.com'
})
afterEach(() => {
// eslint-disable-next-line jest/no-standalone-expect
expect(loader._loader.load).toHaveBeenCalledWith(
url,
expect.any(Function),
Expand Down

0 comments on commit a302baa

Please sign in to comment.