Skip to content

Commit

Permalink
test: scope babel-helper-complication-targets test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLeedham authored and nicolo-ribaudo committed May 24, 2020
1 parent 3604bae commit a71b140
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
@@ -0,0 +1,10 @@
import getTargets from "../..";

it("allows custom browserslist env", () => {
const actual = getTargets(
{},
{ configPath: __dirname, browserslistEnv: "custom" },
);

expect(actual).toEqual({ ie: "11.0.0" });
});
Expand Up @@ -29,15 +29,6 @@ describe("getTargets", () => {
expect(actual).toEqual(expected);
});

it("allows custom browserslist env", () => {
const actual = getTargets(
{},
{ configPath: __dirname, browserslistEnv: "custom" },
);

expect(actual).toEqual({ ie: "11.0.0" });
});

it("does not clobber browserslists defaults", () => {
const browserslistDefaults = browserslist.defaults;

Expand Down

0 comments on commit a71b140

Please sign in to comment.