Skip to content

Commit

Permalink
fix(jest-worker): linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ayshiff committed Oct 29, 2020
1 parent 780996f commit 870d5c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import getStream from 'get-stream';

import {
CHILD_MESSAGE_CALL,
PARENT_MESSAGE_HEARTBEAT,
CHILD_MESSAGE_INITIALIZE,
PARENT_MESSAGE_CLIENT_ERROR,
PARENT_MESSAGE_CUSTOM,
PARENT_MESSAGE_HEARTBEAT,
PARENT_MESSAGE_OK,
} from '../../types';

Expand Down Expand Up @@ -97,8 +97,8 @@ it('initializes the child process with the given workerPath', () => {
forkOptions: {},
maxRetries: 3,
setupArgs: ['foo', 'bar'],
workerPath: '/tmp/foo/bar/baz.js',
workerHeartbeatTimeout: WORKER_HEARTBEAT_TIMEOUT,
workerPath: '/tmp/foo/bar/baz.js',
});

expect(forkInterface.send.mock.calls[0][0]).toEqual([
Expand Down Expand Up @@ -425,8 +425,8 @@ it('calls the onProcessEnd method when we have no heartbeat message from child d
const worker = new Worker({
forkOptions: {},
maxRetries: 3,
workerPath: '/tmp/foo',
workerHeartbeatTimeout: WORKER_HEARTBEAT_TIMEOUT,
workerPath: '/tmp/foo',
});

const onProcessStart = jest.fn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ it('initializes the thread with the given workerPath', () => {
forkOptions: {},
maxRetries: 3,
setupArgs: ['foo', 'bar'],
workerPath: '/tmp/foo/bar/baz.js',
workerHeartbeatTimeout: WORKER_HEARTBEAT_TIMEOUT,
workerPath: '/tmp/foo/bar/baz.js',
});

expect(worker._worker.postMessage.mock.calls[0][0]).toEqual([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
import {
CHILD_MESSAGE_CALL,
CHILD_MESSAGE_END,
PARENT_MESSAGE_HEARTBEAT,
CHILD_MESSAGE_INITIALIZE,
PARENT_MESSAGE_CLIENT_ERROR,
PARENT_MESSAGE_HEARTBEAT,
PARENT_MESSAGE_OK,
} from '../../types';

Expand Down

0 comments on commit 870d5c5

Please sign in to comment.