chore: do not print prototype in jest snapshot (#6908)

This commit is contained in:
Joshua Chen 2022-03-13 19:34:50 +08:00 committed by GitHub
parent 3a4b9b4c30
commit 8c1e518ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 1536 additions and 1519 deletions

View file

@ -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,

View file

@ -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",