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 committed Apr 17, 2020
1 parent db965f6 commit cbdad06
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 cbdad06

Please sign in to comment.