Skip to content

Commit 6c91646

Browse files
committed
style: fix indentation of jest-mock and jest-runtime
1 parent 26ce2c8 commit 6c91646

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

packages/jest-mock/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,10 +731,10 @@ class ModuleMockerClass {
731731
if (typeof original !== 'function') {
732732
throw new Error(
733733
'Cannot spy the ' +
734-
methodName +
735-
' property because it is not a function; ' +
736-
this._typeOf(original) +
737-
' given instead',
734+
methodName +
735+
' property because it is not a function; ' +
736+
this._typeOf(original) +
737+
' given instead',
738738
);
739739
}
740740

packages/jest-runtime/src/index.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ import {options as cliOptions} from './cli/args';
3030

3131
type Module = {|
3232
children: Array<Module>,
33-
exports: any,
34-
filename: string,
35-
id: string,
36-
loaded: boolean,
37-
parent?: Module,
38-
paths?: Array<Path>,
39-
require?: (id: string) => any,
33+
exports: any,
34+
filename: string,
35+
id: string,
36+
loaded: boolean,
37+
parent?: Module,
38+
paths?: Array<Path>,
39+
require?: (id: string) => any,
4040
|};
4141

4242
type HasteMapOptions = {|
4343
console?: Console,
44-
maxWorkers: number,
45-
resetCache: boolean,
46-
watch?: boolean,
47-
watchman: boolean,
44+
maxWorkers: number,
45+
resetCache: boolean,
46+
watch?: boolean,
47+
watchman: boolean,
4848
|};
4949

5050
type InternalModuleOptions = {|
@@ -550,7 +550,7 @@ class Runtime {
550550
filename,
551551
// $FlowFixMe
552552
(localModule.require: LocalModuleRequire),
553-
), // jest object
553+
), // jest object
554554
);
555555

556556
this._isCurrentlyExecutingManualMock = origCurrExecutingManualMock;
@@ -595,7 +595,7 @@ class Runtime {
595595
if (mockMetadata == null) {
596596
throw new Error(
597597
`Failed to get mock metadata: ${modulePath}\n\n` +
598-
`See: http://facebook.github.io/jest/docs/manual-mocks.html#content`,
598+
`See: http://facebook.github.io/jest/docs/manual-mocks.html#content`,
599599
);
600600
}
601601
this._mockMetaDataCache[modulePath] = mockMetadata;
@@ -769,8 +769,8 @@ class Runtime {
769769
this._environment.global.jasmine
770770
? (this._environment.global.jasmine.DEFAULT_TIMEOUT_INTERVAL = timeout)
771771
: (this._environment.global[
772-
Symbol.for('TEST_TIMEOUT_SYMBOL')
773-
] = timeout);
772+
Symbol.for('TEST_TIMEOUT_SYMBOL')
773+
] = timeout);
774774
return jestObject;
775775
};
776776

0 commit comments

Comments
 (0)