From 45035ef6a79bee87cc0211c2205653f697a530ea Mon Sep 17 00:00:00 2001 From: Taylor Monacelli Date: Sat, 3 Aug 2024 19:37:04 -0700 Subject: [PATCH] Add e2e test --- cmd/e2e_test.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cmd/e2e_test.go b/cmd/e2e_test.go index 36ad368..3f69a9f 100644 --- a/cmd/e2e_test.go +++ b/cmd/e2e_test.go @@ -43,7 +43,6 @@ qfc Chocolate Ice Cream - Google Search](https://www.google.com/search?q=qfc+Cho `, expected: `![Item media 5 screenshot](https://lh3.googleusercontent.com/ADTbiH2FM2SYb3PbxWeAI0v_-FYVMFt_6hJ3sabl_gVDadugPc5FX55USRMRIo50uvD0gwKqIJu-kfXWJHRiQV6SsTE=s1280-w1280-h800)`, }, - { name: "Copying text into obsidian brings in funy formatting that breaks links - part 2", input: ` @@ -55,6 +54,20 @@ qfc Chocolate Ice Cream - Google Search](https://www.google.com/search?q=qfc+Cho media 5 screenshot](https://lh3.googleusercontent.com/ADTbiH2FM2SYb3PbxWeAI0v_-FYVMFt_6hJ3sabl_gVDadugPc5FX55USRMRIo50uvD0gwKqIJu-kfXWJHRiQV6SsTE=s1280-w1280-h800) +`, + expected: `[Item media 5 screenshot](https://lh3.googleusercontent.com/ADTbiH2FM2SYb3PbxWeAI0v_-FYVMFt_6hJ3sabl_gVDadugPc5FX55USRMRIo50uvD0gwKqIJu-kfXWJHRiQV6SsTE=s1280-w1280-h800)`, + }, + { + name: "Copying text into obsidian brings in funy formatting that breaks links - part 3", + input: ` + + + + [ Item + + media 5 screenshot](https://lh3.googleusercontent.com/ADTbiH2FM2SYb3PbxWeAI0v_-FYVMFt_6hJ3sabl_gVDadugPc5FX55USRMRIo50uvD0gwKqIJu-kfXWJHRiQV6SsTE=s1280-w1280-h800) + + `, expected: `[Item media 5 screenshot](https://lh3.googleusercontent.com/ADTbiH2FM2SYb3PbxWeAI0v_-FYVMFt_6hJ3sabl_gVDadugPc5FX55USRMRIo50uvD0gwKqIJu-kfXWJHRiQV6SsTE=s1280-w1280-h800)`, },