mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 20:17:50 +02:00
chore: do not print prototype in jest snapshot (#6908)
This commit is contained in:
parent
3a4b9b4c30
commit
8c1e518ba2
37 changed files with 1536 additions and 1519 deletions
|
@ -1,71 +1,71 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`parseLines does not parse content with metastring 1`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "aaaaa
|
||||
nnnnn",
|
||||
"highlightLines": Array [
|
||||
"highlightLines": [
|
||||
0,
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines does not parse content with metastring 2`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "// highlight-next-line
|
||||
aaaaa
|
||||
bbbbb",
|
||||
"highlightLines": Array [
|
||||
"highlightLines": [
|
||||
0,
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines does not parse content with metastring 3`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "aaaaa
|
||||
bbbbb",
|
||||
"highlightLines": Array [
|
||||
"highlightLines": [
|
||||
0,
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines does not parse content with no language 1`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "// highlight-next-line
|
||||
aaaaa
|
||||
bbbbb",
|
||||
"highlightLines": Array [],
|
||||
"highlightLines": [],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines removes lines correctly 1`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "aaaaa
|
||||
bbbbb",
|
||||
"highlightLines": Array [
|
||||
"highlightLines": [
|
||||
0,
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines removes lines correctly 2`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "aaaaa
|
||||
bbbbb",
|
||||
"highlightLines": Array [
|
||||
"highlightLines": [
|
||||
0,
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines removes lines correctly 3`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "aaaaa
|
||||
bbbbbbb
|
||||
bbbbb",
|
||||
"highlightLines": Array [
|
||||
"highlightLines": [
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
|
@ -75,25 +75,25 @@ bbbbb",
|
|||
`;
|
||||
|
||||
exports[`parseLines respects language 1`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "# highlight-next-line
|
||||
aaaaa
|
||||
bbbbb",
|
||||
"highlightLines": Array [],
|
||||
"highlightLines": [],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines respects language 2`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "/* highlight-next-line */
|
||||
aaaaa
|
||||
bbbbb",
|
||||
"highlightLines": Array [],
|
||||
"highlightLines": [],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines respects language 3`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "// highlight-next-line
|
||||
aaaa
|
||||
/* highlight-next-line */
|
||||
|
@ -101,19 +101,19 @@ bbbbb
|
|||
ccccc
|
||||
<!-- highlight-next-line -->
|
||||
dddd",
|
||||
"highlightLines": Array [
|
||||
"highlightLines": [
|
||||
4,
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`parseLines respects language 4`] = `
|
||||
Object {
|
||||
{
|
||||
"code": "aaaa
|
||||
bbbbb
|
||||
ccccc
|
||||
dddd",
|
||||
"highlightLines": Array [
|
||||
"highlightLines": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`useTreeifiedTOC treeifies TOC without filtering 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"children": Array [],
|
||||
[
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"id": "foxtrot",
|
||||
"level": 6,
|
||||
"value": "Foxtrot",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue