Skip to content

Commit

Permalink
Workaround for #19 to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Mar 30, 2015
1 parent 30bed1e commit 90152c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/index.js
Expand Up @@ -47,7 +47,8 @@ test("getSupport tests", (t) => {
chrome: { y: 4, x: 4 },
android: { y: 2.1, x: 2.1 },
and_uc: { y: 9.9 },
and_chr: { y: 40 }
// workaround for https://github.com/Nyalab/caniuse-api/issues/19
and_chr: { y: Object.keys(borderRadiusFeature.stats.and_chr.filter(y => y === "y")).pop() }
}

t.deepEqual(caniuse.getSupport("border-radius"), borderRadiusSupport, "border-radius support is ok")
Expand Down
3 changes: 2 additions & 1 deletion test/utils.js
Expand Up @@ -25,7 +25,8 @@ test("parseCaniuseData should work", (t) => {
chrome: { y: 4, x: 4 },
android: { y: 2.1, x: 2.1 },
and_uc: { y: 9.9 },
and_chr: { y: 40 }
// workaround for https://github.com/Nyalab/caniuse-api/issues/19
and_chr: { y: Object.keys(borderRadiusFeature.stats.and_chr.filter(y => y === "y")).pop() }
}

t.deepEqual(parseCaniuseData(borderRadiusFeature, browsers), correctSupport, "border-radius support is correct")
Expand Down

0 comments on commit 90152c2

Please sign in to comment.