Skip to content

Commit 5eaaf65

Browse files
committed
Refactor code-style
1 parent ac4bf0e commit 5eaaf65

File tree

1 file changed

+50
-51
lines changed

1 file changed

+50
-51
lines changed

test/index.js

Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2700,64 +2700,63 @@ test('escape', (t) => {
27002700
'should support empty `join`, `handlers`, `extensions` in an extension (coverage)'
27012701
)
27022702

2703-
27042703
t.equal(
27052704
to(
27062705
{
2707-
"type": "root",
2708-
"children": [
2709-
{
2710-
"type": "list",
2711-
"ordered": true,
2712-
"start": 1,
2713-
"spread": false,
2714-
"children": [
2715-
{
2716-
"type": "listItem",
2717-
"spread": true,
2718-
"checked": null,
2719-
"children": [
2720-
{
2721-
"type": "paragraph",
2722-
"children": [
2723-
{
2724-
"type": "text",
2725-
"value": "foo"
2726-
}
2727-
]
2728-
},
2729-
{
2730-
"type": "list",
2731-
"ordered": false,
2732-
"start": null,
2733-
"spread": false,
2734-
"children": [
2735-
{
2736-
"type": "listItem",
2737-
"spread": false,
2738-
"checked": null,
2739-
"children": [
2740-
{
2741-
"type": "paragraph",
2742-
"children": [
2743-
{
2744-
"type": "text",
2745-
"value": "bar"
2746-
}
2747-
]
2748-
}
2749-
]
2750-
}
2751-
]
2752-
}
2706+
type: 'root',
2707+
children: [
2708+
{
2709+
type: 'list',
2710+
ordered: true,
2711+
start: 1,
2712+
spread: false,
2713+
children: [
2714+
{
2715+
type: 'listItem',
2716+
spread: true,
2717+
checked: null,
2718+
children: [
2719+
{
2720+
type: 'paragraph',
2721+
children: [
2722+
{
2723+
type: 'text',
2724+
value: 'foo'
2725+
}
2726+
]
2727+
},
2728+
{
2729+
type: 'list',
2730+
ordered: false,
2731+
start: null,
2732+
spread: false,
2733+
children: [
2734+
{
2735+
type: 'listItem',
2736+
spread: false,
2737+
checked: null,
2738+
children: [
2739+
{
2740+
type: 'paragraph',
2741+
children: [
2742+
{
2743+
type: 'text',
2744+
value: 'bar'
2745+
}
2746+
]
2747+
}
27532748
]
2754-
}
2749+
}
2750+
]
2751+
}
27552752
]
2756-
}
2753+
}
2754+
]
2755+
}
27572756
]
2758-
},
2757+
},
27592758
{
2760-
join: [() => 0],
2759+
join: [() => 0]
27612760
}
27622761
),
27632762
'1. foo\n * bar\n',

0 commit comments

Comments
 (0)