Skip to content

Commit

Permalink
chore(term): change unreferenced value in insta test
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Aug 31, 2024
1 parent 9152458 commit 4fa07c3
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
source: crates/synd_term/src/cli/command/import.rs
description: import command output
expression: buf
---
OK MUST rust https://ok1.ymgyt.io/feed.xml
ERROR https://err_unavailable.ymgyt.io/feed.xml server return 500 error
OK SHOULD longcategory https://ok2.ymgyt.io/feed.xml
2/3 feeds successfully subscribed
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
source: crates/synd_term/src/config/file.rs
expression: config
---
ConfigFile {
cache: Some(
CacheEntry {
directory: Some(
"/tmp/synd/cache",
),
},
),
log: Some(
LogEntry {
path: Some(
"/tmp/synd/synd.log",
),
},
),
theme: Some(
ThemeEntry {
name: Some(
Ferra,
),
},
),
api: Some(
ApiEntry {
endpoint: Some(
Url {
scheme: "https",
cannot_be_a_base: false,
username: "",
password: None,
host: Some(
Domain(
"api.syndicationd.ymgyt.io",
),
),
port: None,
path: "/",
query: None,
fragment: None,
},
),
timeout: Some(
30s,
),
},
),
feed: Some(
FeedEntry {
entries_limit: Some(
100,
),
browser: Some(
FeedBrowserEntry {
command: Some(
"w3m",
),
args: Some(
[
"--foo",
"--bar",
],
),
},
),
},
),
github: Some(
GithubEntry {
enable: Some(
true,
),
pat: Some(
"ghp_xxxx",
),
},
),
categories: Some(
{
"rust": Entry {
icon: Icon {
symbol: "S",
color: Some(
IconColor {
rgb: Some(
16206848,
),
name: None,
color: None,
},
),
},
aliases: [
"rs",
],
},
},
),
}
2 changes: 1 addition & 1 deletion etc/scripts/integration.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def main [
# the snapshots of the filtered test cases are deleted.
# Therefore, if a filter is specified, set it to "ignore".
let unreferenced = if ($filter == null) {
"delete"
"warn"
} else {
"ignore"
}
Expand Down

0 comments on commit 4fa07c3

Please # to comment.