Skip to content

Commit

Permalink
Fix indentation of template literals in test (#7008)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte committed Sep 20, 2018
1 parent 3c39c40 commit ab06a7b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/jest-mock/src/__tests__/jest_mock.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ describe('moduleMocker', () => {
it('does not mock methods from Object.prototype (in mock context)', () => {
const Bar = vm.runInContext(
`
const Foo = { foo() {} };
const Bar = Object.assign(Object.create(Foo), { bar() {} });
Bar;
`,
const Foo = { foo() {} };
const Bar = Object.assign(Object.create(Foo), { bar() {} });
Bar;
`,
mockContext,
);

Expand Down Expand Up @@ -273,10 +273,10 @@ describe('moduleMocker', () => {
it('does not mock methods from Function.prototype (in mock context)', () => {
const Bar = vm.runInContext(
`
class Foo {}
class Bar extends Foo {}
Bar;
`,
class Foo {}
class Bar extends Foo {}
Bar;
`,
mockContext,
);

Expand Down Expand Up @@ -304,9 +304,9 @@ describe('moduleMocker', () => {
it('does not mock methods from RegExp.prototype (in mock context)', () => {
const bar = vm.runInContext(
`
const bar = /bar/;
bar;
`,
const bar = /bar/;
bar;
`,
mockContext,
);

Expand Down Expand Up @@ -633,7 +633,7 @@ describe('moduleMocker', () => {
});
});

it(`tracks thrown errors without interfering with other tracking`, () => {
it('tracks thrown errors without interfering with other tracking', () => {
const error = new Error('ODD!');
const fn = moduleMocker.fn((x, y) => {
// multiply params
Expand Down

0 comments on commit ab06a7b

Please sign in to comment.