diff --git a/__tests__/index.js b/__tests__/index.js index 00c4625..abd631d 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -12,15 +12,18 @@ test("ES2015: Set", () => { }) test("ES2015: Generator", () => { - expect(transform(`function* idMaker() { var index = 0; while(true) yield index++ }`, options).code).toMatchSnapshot() + expect(transform(`function* idMaker() { var index = 0; while(true) yield index++ }`, + options).code).toMatchSnapshot() }) test("React: JSX", () => { - expect(transform(`function render() { return

Hello

}`, options).code).toMatchSnapshot() + expect(transform(`function render() { return

Hello

}`, + options).code).toMatchSnapshot() }) test("ESNext: Object Spread", () => { - expect(transform(`let original = { bar : 10 }; let variant = { foo: 1, ...original }`, options).code).toMatchSnapshot() + expect(transform(`let original = { bar : 10 }; let variant = { foo: 1, ...original }`, + options).code).toMatchSnapshot() }) test("ESNext: Class Properties", () => { @@ -32,13 +35,16 @@ test("ESNext: Async/Await", () => { }) test("Lodash: Lodash", () => { - expect(transform(`import { camelCase } from "lodash"; camelCase("hello world")`, options).code).toMatchSnapshot() + expect(transform(`import { camelCase } from "lodash"; camelCase("hello world")`, + options).code).toMatchSnapshot() }) test("Lodash: Recompose", () => { - expect(transform(`import { compose } from "recompose"; compose([])`, options).code).toMatchSnapshot() + expect(transform(`import { compose } from "recompose"; compose([])`, + options).code).toMatchSnapshot() }) test("Lodash: Async", () => { - expect(transform(`import { parallel } from "async"; parallel([])`, options).code).toMatchSnapshot() + expect(transform(`import { parallel } from "async"; parallel([])`, + options).code).toMatchSnapshot() })