Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: "1.32.3"
deno-version: "1.34.3"
- name: Check fmt
run: deno fmt --check
- name: Run lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/udd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: "1.32.3"
deno-version: "1.34.3"
- name: Update dependencies
run: >
deno run --allow-net --allow-read --allow-write=deps/
Expand Down
170 changes: 85 additions & 85 deletions browser/dom/__snapshots__/extractCodeFiles.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
export const snapshot = {};

snapshot[`extractCodeFiles 1`] = `
Map {
Map(5) {
"main.cpp" => {
blocks: [
{
endId: "63b7b1261280f00000c9bc36",
indent: 2,
lines: [
"#include <iostream>",
"",
],
startId: "63b7b1261280f00000c9bc34",
updated: 1672982822,
},
{
endId: "63b7b1261280f00000c9bc3c",
indent: 2,
lines: [
"int main() {",
' std::cout << "Hello, C++" << "from scrapbox.io" << std::endl;',
"}",
"",
],
startId: "63b7b1261280f00000c9bc38",
updated: 1672982822,
},
],
filename: "main.cpp",
lang: "cpp",
},
blocks: [
{
endId: "63b7b1261280f00000c9bc36",
indent: 2,
lines: [
"#include <iostream>",
"",
],
startId: "63b7b1261280f00000c9bc34",
updated: 1672982822,
},
{
endId: "63b7b1261280f00000c9bc3c",
indent: 2,
lines: [
"int main() {",
' std::cout << "Hello, C++" << "from scrapbox.io" << std::endl;',
"}",
"",
],
startId: "63b7b1261280f00000c9bc38",
updated: 1672982822,
},
],
filename: "main.cpp",
lang: "cpp",
},
"py" => {
blocks: [
{
endId: "63b7b1261280f00000c9bc2a",
indent: 0,
lines: [
'print("Hello World!")',
],
startId: "63b7b1261280f00000c9bc29",
updated: 1672982822,
},
],
filename: "py",
lang: "py",
},
blocks: [
{
endId: "63b7b1261280f00000c9bc2a",
indent: 0,
lines: [
'print("Hello World!")',
],
startId: "63b7b1261280f00000c9bc29",
updated: 1672982822,
},
],
filename: "py",
lang: "py",
},
"python" => {
blocks: [
{
endId: "63b7b1261280f00000c9bc31",
indent: 1,
lines: [
\`console.log("I'm JavaScript");\`,
],
startId: "63b7b1261280f00000c9bc30",
updated: 1672982822,
},
],
filename: "python",
lang: "js",
},
blocks: [
{
endId: "63b7b1261280f00000c9bc31",
indent: 1,
lines: [
\`console.log("I'm JavaScript");\`,
],
startId: "63b7b1261280f00000c9bc30",
updated: 1672982822,
},
],
filename: "python",
lang: "js",
},
"インデント.md" => {
blocks: [
{
endId: "63b7b1261280f00000c9bc2e",
indent: 1,
lines: [
"- インデント",
" - インデント",
],
startId: "63b7b1261280f00000c9bc2c",
updated: 1672982822,
},
],
filename: "インデント.md",
lang: "md",
},
blocks: [
{
endId: "63b7b1261280f00000c9bc2e",
indent: 1,
lines: [
"- インデント",
" - インデント",
],
startId: "63b7b1261280f00000c9bc2c",
updated: 1672982822,
},
],
filename: "インデント.md",
lang: "md",
},
"コードブロック.py" => {
blocks: [
{
endId: "63b7b1261280f00000c9bc27",
indent: 0,
lines: [
'print("Hello World!")',
],
startId: "63b7b1261280f00000c9bc26",
updated: 1672982822,
},
],
filename: "コードブロック.py",
lang: "py",
},
blocks: [
{
endId: "63b7b1261280f00000c9bc27",
indent: 0,
lines: [
'print("Hello World!")',
],
startId: "63b7b1261280f00000c9bc26",
updated: 1672982822,
},
],
filename: "コードブロック.py",
lang: "py",
},
}
`;
49 changes: 24 additions & 25 deletions parser/__snapshots__/youtube.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ snapshot[`youtube links > is 1`] = `
{
params: URLSearchParams {
[Symbol("[[webidl.brand]]")]: Symbol("[[webidl.brand]]"),
[Symbol(list)]: [
[
"v",
"LSvaOcaUQ3Y",
],
],
[Symbol("url object")]: URL {
hash: "",
host: "www.youtube.com",
Expand All @@ -23,6 +17,12 @@ snapshot[`youtube links > is 1`] = `
search: "?v=LSvaOcaUQ3Y",
username: "",
},
[Symbol(list)]: [
[
"v",
"LSvaOcaUQ3Y",
],
],
},
pathType: "com",
videoId: "LSvaOcaUQ3Y",
Expand All @@ -34,13 +34,13 @@ snapshot[`youtube links > is 2`] = `
listId: "PLmoRDY8IgE2Okxy4WWdP95RHXOTGzJfQs",
params: URLSearchParams {
[Symbol("[[webidl.brand]]")]: Symbol("[[webidl.brand]]"),
[Symbol("url object")]: null,
[Symbol(list)]: [
[
"list",
"PLmoRDY8IgE2Okxy4WWdP95RHXOTGzJfQs",
],
],
[Symbol("url object")]: null,
},
pathType: "list",
}
Expand All @@ -50,16 +50,6 @@ snapshot[`youtube links > is 3`] = `
{
params: URLSearchParams {
[Symbol("[[webidl.brand]]")]: Symbol("[[webidl.brand]]"),
[Symbol(list)]: [
[
"v",
"57rdbK4vmKE",
],
[
"list",
"PLmoRDY8IgE2Okxy4WWdP95RHXOTGzJfQs",
],
],
[Symbol("url object")]: URL {
hash: "",
host: "www.youtube.com",
Expand All @@ -73,6 +63,16 @@ snapshot[`youtube links > is 3`] = `
search: "?v=57rdbK4vmKE&list=PLmoRDY8IgE2Okxy4WWdP95RHXOTGzJfQs",
username: "",
},
[Symbol(list)]: [
[
"v",
"57rdbK4vmKE",
],
[
"list",
"PLmoRDY8IgE2Okxy4WWdP95RHXOTGzJfQs",
],
],
},
pathType: "com",
videoId: "57rdbK4vmKE",
Expand All @@ -83,12 +83,6 @@ snapshot[`youtube links > is 4`] = `
{
params: URLSearchParams {
[Symbol("[[webidl.brand]]")]: Symbol("[[webidl.brand]]"),
[Symbol(list)]: [
[
"v",
"nj1cre2e6t0",
],
],
[Symbol("url object")]: URL {
hash: "",
host: "music.youtube.com",
Expand All @@ -102,6 +96,12 @@ snapshot[`youtube links > is 4`] = `
search: "?v=nj1cre2e6t0",
username: "",
},
[Symbol(list)]: [
[
"v",
"nj1cre2e6t0",
],
],
},
pathType: "com",
videoId: "nj1cre2e6t0",
Expand All @@ -112,9 +112,8 @@ snapshot[`youtube links > is 5`] = `
{
params: URLSearchParams {
[Symbol("[[webidl.brand]]")]: Symbol("[[webidl.brand]]"),
[Symbol(list)]: [
],
[Symbol("url object")]: null,
[Symbol(list)]: [],
},
pathType: "dotbe",
videoId: "nj1cre2e6t0",
Expand Down
2 changes: 1 addition & 1 deletion rest/__snapshots__/pages.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Request {
headers: Headers {},
method: "GET",
redirect: "follow",
url: "https://scrapbox.io/api/pages/takker/%E3%83%86%E3%82%B9%E3%83%88%E3%83%9A%E3%83%BC%E3%82%B8?followRe..."
url: "https://scrapbox.io/api/pages/takker/%E3%83%86%E3%82%B9%E3%83%88%E3%83%9A%E3%83%BC%E3%82%B8?followRe"... 9 more characters
}
`;

Expand Down
Loading