Skip to content

Commit

Permalink
extra test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Feb 25, 2024
1 parent b56d39c commit dce0d5d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/_tape.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ postcssTape(plugin)({
'google-fonts-once': {
message: "adds google fonts once",
},
'google-fonts-cyrillic': {
message: "supports google fonts (cyrillic)",
options: {
"variants": {
"Roboto Slab": {
"400": ["local woff2 woff", "cyrillic"]
}
},
"foundries": ["google"],
"display": "swap"
}
},
'font-display-option': {
message: "supports font-display option",
options: {
Expand Down
3 changes: 3 additions & 0 deletions test/google-fonts-cyrillic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
a {
font-family: "Roboto Slab";
}
11 changes: 11 additions & 0 deletions test/google-fonts-cyrillic.expect.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@font-face {
font-family: "Roboto Slab";
font-style: normal;
font-weight: 400;
src: url(//fonts.gstatic.com/s/robotoslab/v33/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmb2Rj.woff2) format("woff2"),url(//fonts.gstatic.com/s/robotoslab/v33/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmYWRl.woff) format("woff");
font-display: swap;
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
a {
font-family: "Roboto Slab";
}

0 comments on commit dce0d5d

Please sign in to comment.