Skip to content

Fix indentation of template literals in test #7008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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