Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Use external Electron to Chromium library #144

Merged
merged 7 commits into from
Jan 19, 2017
Prev Previous commit
Next Next commit
update tests: electron 1.0 used chrome 49, not 50
  • Loading branch information
Kilian committed Jan 18, 2017
commit 0f141a07a1599b3092baa9830966be90324c5498
6 changes: 3 additions & 3 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const babelPresetEnv = require("../lib/index.js");
const assert = require("assert");
const electronToChromiumData = require("../data/electron-to-chromium");
const { versions: electronToChromiumData } = require("electron-to-chromium");

describe("babel-preset-env", () => {
describe("getTargets", () => {
Expand All @@ -26,15 +26,15 @@ describe("babel-preset-env", () => {
assert.deepEqual(babelPresetEnv.getTargets({
electron: "1.0"
}), {
chrome: 50
chrome: 49
});
});

it("should work with a number", function() {
assert.deepEqual(babelPresetEnv.getTargets({
electron: 1.0
}), {
chrome: 50
chrome: 49
});
});

Expand Down