Skip to content

Commit 998d98d

Browse files
committed
Refactor code-style
1 parent 2d96821 commit 998d98d

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

test.js

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,12 +2456,12 @@ test('mdxJsxToMarkdown', async function (t) {
24562456
})
24572457

24582458
test('roundtrip', async function (t) {
2459-
await t.test('should roundtrip `attribute`', async function () {
2459+
await t.test('should roundtrip an attribute', async function () {
24602460
equal('<a x="a\nb\nc" />', '<a\n x="a\nb\nc"\n/>\n')
24612461
})
24622462

24632463
await t.test(
2464-
'should roundtrip `attribute in nested element`',
2464+
'should roundtrip an attribute in nested element',
24652465
async function () {
24662466
equal(
24672467
'<a>\n<b x="a\nb\nc" />\n</a>',
@@ -2471,7 +2471,7 @@ test('roundtrip', async function (t) {
24712471
)
24722472

24732473
await t.test(
2474-
'should roundtrip `attribute in nested elements`',
2474+
'should roundtrip an attribute in nested elements',
24752475
async function () {
24762476
equal(
24772477
'<a>\n <b>\n <c x="a\nb\nc" />\n </b>\n</a>',
@@ -2480,12 +2480,15 @@ test('roundtrip', async function (t) {
24802480
}
24812481
)
24822482

2483-
await t.test('should roundtrip `attribute expression`', async function () {
2484-
equal('<a x={`a\nb\nc`} />', '<a\n x={`a\nb\nc`}\n/>\n')
2485-
})
2483+
await t.test(
2484+
'should roundtrip an attribute value expression',
2485+
async function () {
2486+
equal('<a x={`a\nb\nc`} />', '<a\n x={`a\nb\nc`}\n/>\n')
2487+
}
2488+
)
24862489

24872490
await t.test(
2488-
'should roundtrip `attribute expression in nested element`',
2491+
'should roundtrip an attribute value expression in nested element',
24892492
async function () {
24902493
equal(
24912494
'<a>\n<b x={`a\nb\nc`} />\n</a>',
@@ -2495,7 +2498,7 @@ test('roundtrip', async function (t) {
24952498
)
24962499

24972500
await t.test(
2498-
'should roundtrip `attribute expression in nested elements`',
2501+
'should roundtrip an attribute value expression in nested elements',
24992502
async function () {
25002503
equal(
25012504
'<a>\n <b>\n <c x={`a\nb\nc`} />\n </b>\n</a>',
@@ -2504,12 +2507,12 @@ test('roundtrip', async function (t) {
25042507
}
25052508
)
25062509

2507-
await t.test('should roundtrip `expression`', async function () {
2510+
await t.test('should roundtrip an attribute expression', async function () {
25082511
equal('<a {\n...a\n} />', '<a\n {\n...a\n}\n/>\n')
25092512
})
25102513

25112514
await t.test(
2512-
'should roundtrip `expression in nested element`',
2515+
'should roundtrip an attribute expression in nested element',
25132516
async function () {
25142517
equal(
25152518
'<a>\n<b {\n...a\n} />\n</a>',
@@ -2519,7 +2522,7 @@ test('roundtrip', async function (t) {
25192522
)
25202523

25212524
await t.test(
2522-
'should roundtrip `expression in nested elements`',
2525+
'should roundtrip an attribute expression in nested elements',
25232526
async function () {
25242527
equal(
25252528
'<a>\n <b>\n <c {\n...a\n} />\n </b>\n</a>',
@@ -2529,7 +2532,7 @@ test('roundtrip', async function (t) {
25292532
)
25302533

25312534
await t.test(
2532-
'should roundtrip `children in nested elements`',
2535+
'should roundtrip children in nested elements',
25332536
async function () {
25342537
equal(
25352538
`<a>
@@ -2571,7 +2574,7 @@ test('roundtrip', async function (t) {
25712574
)
25722575

25732576
await t.test(
2574-
'should roundtrip `text children in flow elements`',
2577+
'should roundtrip text children in flow elements',
25752578
async function () {
25762579
equal(
25772580
`<video src="#">
@@ -2588,7 +2591,7 @@ test('roundtrip', async function (t) {
25882591
}
25892592
)
25902593

2591-
await t.test('should roundtrip `nested JSX and lists`', async function () {
2594+
await t.test('should roundtrip nested JSX and lists', async function () {
25922595
const source = `<x>
25932596
* Alpha
25942597
@@ -2623,7 +2626,7 @@ test('roundtrip', async function (t) {
26232626
})
26242627

26252628
await t.test(
2626-
'should roundtrip `nested JSX and block quotes`',
2629+
'should roundtrip nested JSX and block quotes',
26272630
async function () {
26282631
const source = `<x>
26292632
> Alpha

0 commit comments

Comments
 (0)