|
it.skip('matches absolute github url with "-" in owner name', () => { |
|
const md = "" |
|
const output = "https://github.com/ghraw/j-hui/fidget.nvim/media/gifs/fidget-demo-rust-analyzer.gif" |
|
const media = run(md, "j-hui", "fidget.nvim", "main"); |
|
expect(media[0]).toEqual(output); |
|
expect(media.length).toBe(1); |
|
}) |
Make this test and all other tests pass, the image matching code is trash but at least we're starting to have some test coverage so we can refactor when appropriate
dotfyle/src/lib/server/media/parser.spec.ts
Lines 88 to 94 in 224da07
Make this test and all other tests pass, the image matching code is trash but at least we're starting to have some test coverage so we can refactor when appropriate