Skip to content

refactor: switch from deprecated 'substr' to 'substring' #51

refactor: switch from deprecated 'substr' to 'substring'

refactor: switch from deprecated 'substr' to 'substring' #51

GitHub Actions / Test Results succeeded Oct 12, 2023 in 0s

All 14 tests pass in 0s

  1 files  ±0    2 suites  ±0   0s ⏱️ ±0s
14 tests  - 5  14 ✔️  - 5  0 💤 ±0  0 ±0 
19 runs  ±0  19 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit f6a2971. ± Comparison against earlier commit 964361f.

Annotations

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions 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