Skip to content

Commit

Permalink
Add e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
taylormonacelli committed Aug 4, 2024
1 parent 78aaa78 commit 45035ef
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cmd/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: `
Expand All @@ -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)`,
},
Expand Down

0 comments on commit 45035ef

Please sign in to comment.