Skip to content

Commit

Permalink
test: Add URL with fragment to links.zo
Browse files Browse the repository at this point in the history
  • Loading branch information
bbugyi200 committed Aug 31, 2024
1 parent 2bec1b9 commit 67238b3
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/__snapshots__/test_run_action_open.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/
- 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s
- 240828#04 ID::foo_slash_arg https://go/foo/bar/%s
- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI

################################ [[multiblocks]]
- 240510#0E Note A2
Expand Down
15 changes: 14 additions & 1 deletion tests/__snapshots__/test_run_compile.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,20 @@
'projects': [],
'properties': {'ID': 'foo_slash_arg'},
'todo_payload': None,
'zid': '240828#04'}],
'zid': '240828#04'},
{'areas': [],
'block': None,
'body': '240831#00 ID::gchat_convo '
'https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI',
'contexts': ['footnote'],
'create_date': FakeDate(2024, 8, 31),
'links': ['x:https://mail.google.com/chat/u/0'],
'modify_date': FakeDate(2024, 8, 31),
'people': [],
'projects': [],
'properties': {'ID': 'gchat_convo'},
'todo_payload': None,
'zid': '240831#00'}],
'section': None}],
'h2s': [],
'page': None,
Expand Down
5 changes: 4 additions & 1 deletion tests/__snapshots__/test_run_db.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'2024-07-21',
'2024-08-06',
'2024-08-28',
'2024-08-31',
'2030-12-31',
])
# ---
Expand All @@ -58,6 +59,7 @@
'x:https://go/foo?a=/&b=2&c=/',
'x:https://go/foo?bar=%s',
'x:https://go/foo?env=dev&bar=2&baz=3',
'x:https://mail.google.com/chat/u/0',
'x:https://www.bazbuz.com',
'x:https://www.foobar.com',
'xmind/zorg_e2e_query_arch.xmind',
Expand All @@ -66,7 +68,7 @@
])
# ---
# name: test_run_db_create__note_count[YAMLConfigFile]
123
124
# ---
# name: test_run_db_create__people[YAMLConfigFile]
list([
Expand Down Expand Up @@ -291,6 +293,7 @@
'240828#02',
'240828#03',
'240828#04',
'240831#00',
'301231#X0',
'301231#X1',
])
Expand Down
8 changes: 8 additions & 0 deletions tests/__snapshots__/test_run_query.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
- 240828#01 ID::foo_with_url_query https://go/foo?env=dev&bar=2&baz=3
- 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/
- 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s
- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI

################################ [[property]]
o P3 240510#0N This recurring todo also uses an inline property | [recur::M+Th]
Expand Down Expand Up @@ -271,6 +272,7 @@
- 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/
- 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s
- 240828#04 ID::foo_slash_arg https://go/foo/bar/%s
- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI

################################ [[multiblocks]]
o P3 240510#07 Some todo
Expand Down Expand Up @@ -788,6 +790,7 @@
- 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/
- 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s
- 240828#04 ID::foo_slash_arg https://go/foo/bar/%s
- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI

################################ @pomodoro
- 240323#0J #gtd pomodoro
Expand Down Expand Up @@ -1013,6 +1016,7 @@
- 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/
- 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s
- 240828#04 ID::foo_slash_arg https://go/foo/bar/%s
- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI
- 301231#X1 @READ Some article
* RID::some_article
* url::http://www.example.com
Expand Down Expand Up @@ -1189,6 +1193,7 @@
- 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/
- 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s
- 240828#04 ID::foo_slash_arg https://go/foo/bar/%s
- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI

++++++++++++++++ +arms
- 240510#0L Sqtdicu Gfwebkj: fdxd://rd/czge-nxgz-vmuncaf
Expand Down Expand Up @@ -1402,6 +1407,7 @@
- 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/
- 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s
- 240828#04 ID::foo_slash_arg https://go/foo/bar/%s
- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI

################################ [[multiblocks]]
- 240510#0E Note A2
Expand Down Expand Up @@ -1750,6 +1756,7 @@
x:https://go/foo?a=/&b=2&c=/
x:https://go/foo?bar=%s
x:https://go/foo?env=dev&bar=2&baz=3
x:https://mail.google.com/chat/u/0
x:https://www.bazbuz.com
x:https://www.foobar.com
xmind/zorg_e2e_query_arch.xmind
Expand Down Expand Up @@ -1779,6 +1786,7 @@
x:https://go/foo?a=/&b=2&c=/
x:https://go/foo?bar=%s
x:https://go/foo/bar/%s
x:https://mail.google.com/chat/u/0
bar.sh
baz
buz#fuzz
Expand Down
1 change: 1 addition & 0 deletions tests/data/links.zo
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
- 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/
- 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s
- 240828#04 ID::foo_slash_arg https://go/foo/bar/%s
- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI

0 comments on commit 67238b3

Please sign in to comment.