Skip to content

Commit c51242a

Browse files
committed
fixed tests
1 parent 3f54c9a commit c51242a

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Run tests
3636
# https://github.com/denoland/deno/issues/30831
37-
if: matrix.os != 'ubuntu-latest' && matrix.deno_version != 'lts'
37+
if: matrix.os != 'ubuntu-latest' || matrix.deno_version != 'lts'
3838
run: deno task test
3939

4040
- name: Test upgrade

tests/__snapshots__/google_fonts.test.ts.snap

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8213,6 +8213,31 @@ snapshot[`Use a placeholder 3`] = `
82138213
remote: undefined,
82148214
},
82158215
},
8216+
{
8217+
content: "Uint8Array(2040)",
8218+
data: {
8219+
basename: "jp-font-normal-700-[2]",
8220+
content: "Uint8Array(2040)",
8221+
date: [],
8222+
mergedKeys: [
8223+
"tags",
8224+
],
8225+
page: [
8226+
"src",
8227+
"data",
8228+
"isCopy",
8229+
],
8230+
paginate: "paginate",
8231+
search: [],
8232+
tags: "Array(0)",
8233+
url: "/fonts/jp-font-normal-700-%5B2%5D.woff2",
8234+
},
8235+
src: {
8236+
ext: "",
8237+
path: "",
8238+
remote: undefined,
8239+
},
8240+
},
82168241
{
82178242
content: "Uint8Array(11608)",
82188243
data: {
@@ -8681,6 +8706,17 @@ snapshot[`Use a placeholder 3`] = `
86818706
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
86828707
font-display: swap;
86838708
}
8709+
/* [2] */
8710+
@font-face {
8711+
font-family: "jp-font";
8712+
font-style: normal;
8713+
font-weight: 700;
8714+
font-stretch: normal;
8715+
src: url("fonts/jp-font-normal-700-[2].woff2") format("woff2");
8716+
unicode-range: U+f92d-f959, U+f95b-f9f2, U+f9f4-fa0b, U+fa0e-fa0f;
8717+
font-display: swap;
8718+
}
8719+
86848720
/* latin */
86858721
@font-face {
86868722
font-family: "jp-font";

0 commit comments

Comments
 (0)