-
Notifications
You must be signed in to change notification settings - Fork 11
Bug Fix: Images not getting read properly #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b46349d
Bug Fix: all files were reading in utf-8 which was preventing images …
andysteadbbc ae03b00
CHange image to a free one
andysteadbbc db307ed
Remove logging and update localhost homepage to put all fixed issues …
andysteadbbc c72cccc
Add Github md alerts
andysteadbbc c28a0e5
Merge branch 'refs/heads/main' into cloudplat-523
andysteadbbc 05d63d4
Add snapshot testing to all test folders
andysteadbbc 0623f0a
Add header and paragraph details to local testing
andysteadbbc 791e620
Add extra testing
andysteadbbc 133ad03
Add file count to snapshot testing
andysteadbbc c40e3d3
testing testing table only
andysteadbbc a2749ab
remove hidden files making the tests fail in PR
andysteadbbc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,47 @@ | ||
| # Morty docs | ||
| If you're seeing this, you haven't supplied an argument to the npm start command. | ||
|
|
||
| If you're seeing this, you haven't supplied an argument to the npm start command. | ||
| # Header 1 | ||
| ## Header 2 | ||
| ### Header 3 | ||
| #### Header 4 | ||
|
|
||
| ## Paragraphs | ||
| ### Bold | ||
| **Lorem Ipsum is simply dummy text of the printing and typesetting industry.** | ||
| ### Italic | ||
| _Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book._ | ||
| ### Strike-Through | ||
| ~~It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.~~ | ||
| ### Code line | ||
| `It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.` | ||
|
|
||
| ## Coloured Links | ||
| lorem ipsum [this is a normal link](https://github.com/bbc) lorem ipsum<br> | ||
| [`this is a link within a code block`](https://github.com/bbc) | ||
| * link in a bullet point [`this is a link`](https://bbc-tpg.slack.com/archives/CH62XGS77) lorem ipsum | ||
|
|
||
| ## Images | ||
| Do images still work? | ||
|
|
||
|  | ||
|
|
||
| ## Github Alerts | ||
|
|
||
| > [!NOTE] | ||
| > Highlights information that users should take into account, even when skimming. | ||
| > More text note | ||
| > Even more text note | ||
|
|
||
| > [!TIP] | ||
| > Optional information to help a user be more successful. | ||
| > more text tip | ||
|
|
||
| > [!IMPORTANT] | ||
| > Crucial information necessary for users to succeed. | ||
|
|
||
| > [!WARNING] | ||
| > Critical content demanding immediate user attention due to potential risks. | ||
|
|
||
| > [!CAUTION] | ||
| > Negative potential consequences of an action. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
233 changes: 233 additions & 0 deletions
233
test/unit/__snapshots__/generate-transform-input.test.js.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,233 @@ | ||
| // Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
|
||
| exports[`Snapshot Test Files in folder \`test1\`, should match snapshot with \`1\` files 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 84, | ||
| 101, | ||
| 115, | ||
| 116, | ||
| 32, | ||
| 49, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "test1.txt", | ||
| }, | ||
| ] | ||
| `; | ||
|
|
||
| exports[`Snapshot Test Files in folder \`test2\`, should match snapshot with \`2\` files 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 68, | ||
| 105, | ||
| 114, | ||
| 32, | ||
| 49, | ||
| 32, | ||
| 84, | ||
| 101, | ||
| 115, | ||
| 116, | ||
| 32, | ||
| 49, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "dir1/test1.txt", | ||
| }, | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 68, | ||
| 105, | ||
| 114, | ||
| 32, | ||
| 50, | ||
| 32, | ||
| 84, | ||
| 101, | ||
| 115, | ||
| 116, | ||
| 32, | ||
| 49, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "dir2/test1.txt", | ||
| }, | ||
| ] | ||
| `; | ||
|
|
||
| exports[`Snapshot Test Files in folder \`test3\`, should match snapshot with \`3\` files 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 68, | ||
| 105, | ||
| 114, | ||
| 32, | ||
| 49, | ||
| 32, | ||
| 84, | ||
| 101, | ||
| 115, | ||
| 116, | ||
| 32, | ||
| 49, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "dir1/test1.txt", | ||
| }, | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 68, | ||
| 105, | ||
| 114, | ||
| 32, | ||
| 49, | ||
| 32, | ||
| 83, | ||
| 117, | ||
| 98, | ||
| 32, | ||
| 49, | ||
| 32, | ||
| 84, | ||
| 101, | ||
| 115, | ||
| 116, | ||
| 32, | ||
| 49, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "dir1/sub1/test1.txt", | ||
| }, | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 68, | ||
| 105, | ||
| 114, | ||
| 32, | ||
| 49, | ||
| 32, | ||
| 83, | ||
| 117, | ||
| 98, | ||
| 32, | ||
| 50, | ||
| 32, | ||
| 84, | ||
| 101, | ||
| 115, | ||
| 116, | ||
| 32, | ||
| 49, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "dir1/sub1/sub2/test1.txt", | ||
| }, | ||
| ] | ||
| `; | ||
|
|
||
| exports[`Snapshot Test Files in folder \`test4\`, should match snapshot with \`2\` files 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 83, | ||
| 121, | ||
| 109, | ||
| 108, | ||
| 105, | ||
| 110, | ||
| 107, | ||
| 32, | ||
| 84, | ||
| 101, | ||
| 120, | ||
| 116, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "symlink.txt", | ||
| }, | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 68, | ||
| 105, | ||
| 114, | ||
| 32, | ||
| 49, | ||
| 32, | ||
| 84, | ||
| 101, | ||
| 115, | ||
| 116, | ||
| 32, | ||
| 49, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "dir1/test1.txt", | ||
| }, | ||
| ] | ||
| `; | ||
|
|
||
| exports[`Snapshot Test Files in folder \`test5\`, should match snapshot with \`1\` files 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 83, | ||
| 121, | ||
| 109, | ||
| 108, | ||
| 105, | ||
| 110, | ||
| 107, | ||
| 32, | ||
| 84, | ||
| 101, | ||
| 120, | ||
| 116, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "symlink.txt", | ||
| }, | ||
| ] | ||
| `; | ||
|
|
||
| exports[`Snapshot Test Files in folder \`test6\`, should match snapshot with \`0\` files 1`] = `Array []`; | ||
|
|
||
| exports[`Snapshot Test should match test1 snapshot 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "raw": Object { | ||
| "data": Array [ | ||
| 84, | ||
| 101, | ||
| 115, | ||
| 116, | ||
| 32, | ||
| 49, | ||
| ], | ||
| "type": "Buffer", | ||
| }, | ||
| "relativePath": "test1.txt", | ||
| }, | ||
| ] | ||
| `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth removing this log?