chore: bump browserslist to version 4.9.1 (#11207)
This commit is contained in:
parent
21c9141872
commit
a12001a0f9
@ -18,7 +18,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/compat-data": "^7.8.6",
|
"@babel/compat-data": "^7.8.6",
|
||||||
"browserslist": "^4.8.5",
|
"browserslist": "^4.9.1",
|
||||||
"invariant": "^2.2.4",
|
"invariant": "^2.2.4",
|
||||||
"levenary": "^1.1.1",
|
"levenary": "^1.1.1",
|
||||||
"semver": "^5.5.0"
|
"semver": "^5.5.0"
|
||||||
|
|||||||
@ -39,6 +39,13 @@ describe("getTargets", () => {
|
|||||||
expect(browserslist.defaults).toEqual(browserslistDefaults);
|
expect(browserslist.defaults).toEqual(browserslistDefaults);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("supports region browserslists query", () => {
|
||||||
|
const actual = getTargets({ browsers: "> 0.5% in GB" });
|
||||||
|
// chrome 4 is the first release of chrome,
|
||||||
|
// it should never be included in this query
|
||||||
|
expect(parseFloat(actual.chrome)).toBeGreaterThan(4);
|
||||||
|
});
|
||||||
|
|
||||||
describe("validation", () => {
|
describe("validation", () => {
|
||||||
it("throws on invalid target name", () => {
|
it("throws on invalid target name", () => {
|
||||||
const invalidTargetName = () => {
|
const invalidTargetName = () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user