Skip to content

Commit 52c518b

Browse files
authored
Merge pull request #131 from ony3000/copilot/add-length-indicator-to-tests
Add length indicators to test fixtures
2 parents d32b9e9 + c54412f commit 52c518b

File tree

396 files changed

+5119
-2150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

396 files changed

+5119
-2150
lines changed

tests/angular/attribute-multiple/__snapshots__/absolute.test.ts.snap

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`'long enough (1) - single line with no…' > expectation 1`] = `
4-
"<template>
4+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
5+
<template>
56
<div>
67
<div
78
dir="ltr"
@@ -19,7 +20,8 @@ exports[`'long enough (1) - single line with no…' > expectation 1`] = `
1920
`;
2021

2122
exports[`'long enough (2) - single line with sp…' > expectation 1`] = `
22-
"<template>
23+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
24+
<template>
2325
<div>
2426
<div
2527
dir="ltr"
@@ -37,7 +39,8 @@ exports[`'long enough (2) - single line with sp…' > expectation 1`] = `
3739
`;
3840

3941
exports[`'long enough (3) - multiple lines' > expectation 1`] = `
40-
"<template>
42+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
43+
<template>
4144
<div>
4245
<div
4346
dir="ltr"
@@ -55,7 +58,8 @@ exports[`'long enough (3) - multiple lines' > expectation 1`] = `
5558
`;
5659

5760
exports[`'near boundary (1) - single line with …' > expectation 1`] = `
58-
"<template>
61+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
62+
<template>
5963
<div>
6064
<div
6165
dir="ltr"
@@ -72,7 +76,8 @@ exports[`'near boundary (1) - single line with …' > expectation 1`] = `
7276
`;
7377

7478
exports[`'near boundary (2) - single line with …' > expectation 1`] = `
75-
"<template>
79+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
80+
<template>
7681
<div>
7782
<div
7883
dir="ltr"
@@ -89,7 +94,8 @@ exports[`'near boundary (2) - single line with …' > expectation 1`] = `
8994
`;
9095

9196
exports[`'near boundary (3) - multiple lines' > expectation 1`] = `
92-
"<template>
97+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
98+
<template>
9399
<div>
94100
<div
95101
dir="ltr"
@@ -106,7 +112,8 @@ exports[`'near boundary (3) - multiple lines' > expectation 1`] = `
106112
`;
107113

108114
exports[`'short enough (1) - single line with n…' > expectation 1`] = `
109-
"<template>
115+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
116+
<template>
110117
<div>
111118
<div
112119
dir="ltr"
@@ -122,7 +129,8 @@ exports[`'short enough (1) - single line with n…' > expectation 1`] = `
122129
`;
123130

124131
exports[`'short enough (2) - single line with s…' > expectation 1`] = `
125-
"<template>
132+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
133+
<template>
126134
<div>
127135
<div
128136
dir="ltr"
@@ -138,7 +146,8 @@ exports[`'short enough (2) - single line with s…' > expectation 1`] = `
138146
`;
139147

140148
exports[`'short enough (3) - multiple lines' > expectation 1`] = `
141-
"<template>
149+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
150+
<template>
142151
<div>
143152
<div
144153
dir="ltr"
@@ -154,7 +163,8 @@ exports[`'short enough (3) - multiple lines' > expectation 1`] = `
154163
`;
155164

156165
exports[`'syntax variants - component' > expectation 1`] = `
157-
"<template>
166+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
167+
<template>
158168
<div>
159169
<Box
160170
dir="ltr"

tests/angular/attribute-multiple/__snapshots__/relative.test.ts.snap

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`'long enough (1) - single line with no…' > expectation 1`] = `
4-
"<template>
4+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
5+
<template>
56
<div>
67
<div
78
dir="ltr"
@@ -19,7 +20,8 @@ exports[`'long enough (1) - single line with no…' > expectation 1`] = `
1920
`;
2021

2122
exports[`'long enough (2) - single line with sp…' > expectation 1`] = `
22-
"<template>
23+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
24+
<template>
2325
<div>
2426
<div
2527
dir="ltr"
@@ -37,7 +39,8 @@ exports[`'long enough (2) - single line with sp…' > expectation 1`] = `
3739
`;
3840

3941
exports[`'long enough (3) - multiple lines' > expectation 1`] = `
40-
"<template>
42+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
43+
<template>
4144
<div>
4245
<div
4346
dir="ltr"
@@ -55,7 +58,8 @@ exports[`'long enough (3) - multiple lines' > expectation 1`] = `
5558
`;
5659

5760
exports[`'near boundary (1) - single line with …' > expectation 1`] = `
58-
"<template>
61+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
62+
<template>
5963
<div>
6064
<div
6165
dir="ltr"
@@ -71,7 +75,8 @@ exports[`'near boundary (1) - single line with …' > expectation 1`] = `
7175
`;
7276

7377
exports[`'near boundary (2) - single line with …' > expectation 1`] = `
74-
"<template>
78+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
79+
<template>
7580
<div>
7681
<div
7782
dir="ltr"
@@ -87,7 +92,8 @@ exports[`'near boundary (2) - single line with …' > expectation 1`] = `
8792
`;
8893

8994
exports[`'near boundary (3) - multiple lines' > expectation 1`] = `
90-
"<template>
95+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
96+
<template>
9197
<div>
9298
<div
9399
dir="ltr"
@@ -103,7 +109,8 @@ exports[`'near boundary (3) - multiple lines' > expectation 1`] = `
103109
`;
104110

105111
exports[`'short enough (1) - single line with n…' > expectation 1`] = `
106-
"<template>
112+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
113+
<template>
107114
<div>
108115
<div
109116
dir="ltr"
@@ -119,7 +126,8 @@ exports[`'short enough (1) - single line with n…' > expectation 1`] = `
119126
`;
120127

121128
exports[`'short enough (2) - single line with s…' > expectation 1`] = `
122-
"<template>
129+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
130+
<template>
123131
<div>
124132
<div
125133
dir="ltr"
@@ -135,7 +143,8 @@ exports[`'short enough (2) - single line with s…' > expectation 1`] = `
135143
`;
136144

137145
exports[`'short enough (3) - multiple lines' > expectation 1`] = `
138-
"<template>
146+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
147+
<template>
139148
<div>
140149
<div
141150
dir="ltr"
@@ -151,7 +160,8 @@ exports[`'short enough (3) - multiple lines' > expectation 1`] = `
151160
`;
152161

153162
exports[`'syntax variants - component' > expectation 1`] = `
154-
"<template>
163+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
164+
<template>
155165
<div>
156166
<Box
157167
dir="ltr"

tests/angular/attribute-multiple/fixtures.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
44
{
55
name: 'short enough (1) - single line with no spaces at both ends',
66
input: `
7+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
78
<template>
89
<div>
910
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class="lorem ipsum dolor sit amet">
@@ -16,6 +17,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
1617
{
1718
name: 'short enough (2) - single line with spaces at both ends',
1819
input: `
20+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
1921
<template>
2022
<div>
2123
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class=" lorem ipsum dolor sit amet ">
@@ -28,6 +30,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
2830
{
2931
name: 'short enough (3) - multiple lines',
3032
input: `
33+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
3134
<template>
3235
<div>
3336
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class="
@@ -43,6 +46,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
4346
{
4447
name: 'near boundary (1) - single line with no spaces at both ends',
4548
input: `
49+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
4650
<template>
4751
<div>
4852
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class="lorem ipsum dolor sit amet consectetur adipiscing elit proin">
@@ -55,6 +59,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
5559
{
5660
name: 'near boundary (2) - single line with spaces at both ends',
5761
input: `
62+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
5863
<template>
5964
<div>
6065
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class=" lorem ipsum dolor sit amet consectetur adipiscing elit proin ">
@@ -67,6 +72,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
6772
{
6873
name: 'near boundary (3) - multiple lines',
6974
input: `
75+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
7076
<template>
7177
<div>
7278
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class="
@@ -84,6 +90,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
8490
{
8591
name: 'long enough (1) - single line with no spaces at both ends',
8692
input: `
93+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
8794
<template>
8895
<div>
8996
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class="lorem ipsum dolor sit amet consectetur adipiscing elit proin ex massa hendrerit eu posuere eu volutpat id neque pellentesque">
@@ -96,6 +103,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
96103
{
97104
name: 'long enough (2) - single line with spaces at both ends',
98105
input: `
106+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
99107
<template>
100108
<div>
101109
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class=" lorem ipsum dolor sit amet consectetur adipiscing elit proin ex massa hendrerit eu posuere eu volutpat id neque pellentesque ">
@@ -108,6 +116,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
108116
{
109117
name: 'long enough (3) - multiple lines',
110118
input: `
119+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
111120
<template>
112121
<div>
113122
<div dir="ltr" id="lorem-ipsum" title="lorem ipsum" class="
@@ -125,6 +134,7 @@ export const fixtures: Omit<Fixture, 'output'>[] = [
125134
{
126135
name: 'syntax variants - component',
127136
input: `
137+
<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
128138
<template>
129139
<div>
130140
<Box

tests/angular/attribute-single/__snapshots__/absolute.test.ts.snap

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`'long enough (1) - single line with no…' > expectation 1`] = `
4-
"<template>
4+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
5+
<template>
56
<div>
67
<div
78
class="lorem ipsum dolor sit amet consectetur
@@ -16,7 +17,8 @@ exports[`'long enough (1) - single line with no…' > expectation 1`] = `
1617
`;
1718

1819
exports[`'long enough (2) - single line with sp…' > expectation 1`] = `
19-
"<template>
20+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
21+
<template>
2022
<div>
2123
<div
2224
class="lorem ipsum dolor sit amet consectetur
@@ -31,7 +33,8 @@ exports[`'long enough (2) - single line with sp…' > expectation 1`] = `
3133
`;
3234

3335
exports[`'long enough (3) - multiple lines' > expectation 1`] = `
34-
"<template>
36+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
37+
<template>
3538
<div>
3639
<div
3740
class="lorem ipsum dolor sit amet consectetur
@@ -46,7 +49,8 @@ exports[`'long enough (3) - multiple lines' > expectation 1`] = `
4649
`;
4750

4851
exports[`'near boundary (1) - single line with …' > expectation 1`] = `
49-
"<template>
52+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
53+
<template>
5054
<div>
5155
<div
5256
class="lorem ipsum dolor sit amet consectetur
@@ -60,7 +64,8 @@ exports[`'near boundary (1) - single line with …' > expectation 1`] = `
6064
`;
6165

6266
exports[`'near boundary (2) - single line with …' > expectation 1`] = `
63-
"<template>
67+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
68+
<template>
6469
<div>
6570
<div
6671
class="lorem ipsum dolor sit amet consectetur
@@ -74,7 +79,8 @@ exports[`'near boundary (2) - single line with …' > expectation 1`] = `
7479
`;
7580

7681
exports[`'near boundary (3) - multiple lines' > expectation 1`] = `
77-
"<template>
82+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
83+
<template>
7884
<div>
7985
<div
8086
class="lorem ipsum dolor sit amet consectetur
@@ -88,7 +94,8 @@ exports[`'near boundary (3) - multiple lines' > expectation 1`] = `
8894
`;
8995

9096
exports[`'short enough (1) - single line with n…' > expectation 1`] = `
91-
"<template>
97+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
98+
<template>
9299
<div>
93100
<div class="lorem ipsum dolor sit amet">
94101
<slot></slot>
@@ -99,7 +106,8 @@ exports[`'short enough (1) - single line with n…' > expectation 1`] = `
99106
`;
100107

101108
exports[`'short enough (2) - single line with s…' > expectation 1`] = `
102-
"<template>
109+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
110+
<template>
103111
<div>
104112
<div class="lorem ipsum dolor sit amet">
105113
<slot></slot>
@@ -110,7 +118,8 @@ exports[`'short enough (2) - single line with s…' > expectation 1`] = `
110118
`;
111119

112120
exports[`'short enough (3) - multiple lines' > expectation 1`] = `
113-
"<template>
121+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
122+
<template>
114123
<div>
115124
<div class="lorem ipsum dolor sit amet">
116125
<slot></slot>
@@ -121,7 +130,8 @@ exports[`'short enough (3) - multiple lines' > expectation 1`] = `
121130
`;
122131

123132
exports[`'syntax variants - component' > expectation 1`] = `
124-
"<template>
133+
"<!-- ------------------------------------------------------| printWidth=60 (in snapshot) -->
134+
<template>
125135
<div>
126136
<Box
127137
class="lorem ipsum dolor sit amet consectetur

0 commit comments

Comments
 (0)