test: update snapshots for styled-jsx

This commit is contained in:
unix
2021-08-13 17:26:35 +08:00
parent 85c27f01f2
commit 8367dce981
23 changed files with 2733 additions and 73 deletions

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Tag should work with invert 1`] = `
initialize {
LoadedCheerio {
"0": Node {
"attribs": Object {
"class": "",
@@ -114,7 +114,83 @@ initialize {
"class": undefined,
},
},
"_root": [Circular],
"_root": LoadedCheerio {
"0": Node {
"children": Array [
Node {
"attribs": Object {},
"children": Array [
Node {
"attribs": Object {},
"children": Array [],
"name": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Node {
"attribs": Object {},
"children": Array [],
"name": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": [Circular],
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
"parent": [Circular],
"prev": null,
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
Node {
"attribs": Object {},
"children": Array [],
"name": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": Node {
"attribs": Object {},
"children": Array [],
"name": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"next": [Circular],
"parent": [Circular],
"prev": null,
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
],
"name": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": null,
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
],
"name": "root",
"next": null,
"parent": null,
"prev": null,
"type": "root",
"x-mode": "quirks",
},
"_root": [Circular],
"length": 1,
"options": Object {
"decodeEntities": true,
"xml": false,
},
},
"length": 1,
"options": Object {
"decodeEntities": true,
@@ -124,7 +200,7 @@ initialize {
`;
exports[`Tag should work with types 1`] = `
initialize {
LoadedCheerio {
"0": Node {
"attribs": Object {},
"children": Array [
@@ -1783,7 +1859,83 @@ initialize {
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
"_root": [Circular],
"_root": LoadedCheerio {
"0": Node {
"children": Array [
Node {
"attribs": Object {},
"children": Array [
Node {
"attribs": Object {},
"children": Array [],
"name": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Node {
"attribs": Object {},
"children": Array [],
"name": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": [Circular],
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
"parent": [Circular],
"prev": null,
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
Node {
"attribs": Object {},
"children": Array [],
"name": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": Node {
"attribs": Object {},
"children": Array [],
"name": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"next": [Circular],
"parent": [Circular],
"prev": null,
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
],
"name": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": null,
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
],
"name": "root",
"next": null,
"parent": null,
"prev": null,
"type": "root",
"x-mode": "quirks",
},
"_root": [Circular],
"length": 1,
"options": Object {
"decodeEntities": true,
"xml": false,
},
},
"length": 1,
"options": Object {
"decodeEntities": true,