refactor: switch from deprecated 'substr' to 'substring' #51
GitHub Actions / Test Results
succeeded
Oct 12, 2023 in 0s
All 14 tests pass in 0s
Annotations
Check notice on line 0 in .github
github-actions / Test Results
14 tests found
There are 14 tests, see "Raw output" for the full list of tests.
Raw output
test/markdown-image-parsing.test.ts ‑ findImgurMarkdownImage > GIVEN line ''![](https://i.imgur.com/m3RpPCV.png)'' and cursor pos: +0
test/markdown-image-parsing.test.ts ‑ findImgurMarkdownImage > GIVEN line ''![](https://i.imgur.com/m3RpPCV.png)'' and cursor pos: 35
test/markdown-image-parsing.test.ts ‑ findImgurMarkdownImage > GIVEN line ''![](https://i.imgur.com/m3RpPCVm.png)'' and cursor pos: +0
test/markdown-image-parsing.test.ts ‑ findImgurMarkdownImage > does not match an image when cursor position is after an image
test/markdown-image-parsing.test.ts ‑ findImgurMarkdownImage > matches 2nd image when cursor is between the 1st and second one
test/markdown-image-parsing.test.ts ‑ findImgurMarkdownImage > matches an image when cursor position is set to last character of image
test/markdown-image-parsing.test.ts ‑ findImgurMarkdownImage > throws error for images with unexpected length of image id
test/markdown-image-parsing.test.ts ‑ isWrapped type predicate > correctly detects wrapped image
test/markdown-image-parsing.test.ts ‑ isWrapped type predicate > treats simple image as not-wrapped
test/resizing.test.ts ‑ resizeTo > can resize already resized image
test/resizing.test.ts ‑ resizeTo > provides correct range to be replaced
test/resizing.test.ts ‑ resizeTo > resizes ''resized image'' to original size
test/resizing.test.ts ‑ resizeTo > resizes ''wrapped resized image'' to original size
test/resizing.test.ts ‑ resizeTo > resizes an image to '{ Object (suffix, description, ...) }' as expected
Loading