-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug Fix: Images not getting read properly (#96)
* Bug Fix: all files were reading in utf-8 which was preventing images from working properly * CHange image to a free one * Remove logging and update localhost homepage to put all fixed issues in there for future testing * Add Github md alerts * Add snapshot testing to all test folders * Add header and paragraph details to local testing * Add extra testing * Add file count to snapshot testing * testing testing table only * remove hidden files making the tests fail in PR
- Loading branch information
1 parent
528b635
commit f6c96a5
Showing
5 changed files
with
314 additions
and
12 deletions.
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 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? | ||
|
||
![Image 1](./folder/subFolder/test.jpg) | ||
|
||
## 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 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 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 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