Skip to content

Commit bf9e00d

Browse files
test(data): make html and svg readonly
1 parent b47bd6e commit bf9e00d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/data/html.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export const html = {
1919
form: '<input type="text" value="foo" checked="checked">',
2020
list: '<ol><li>One</li><li value="2">Two</li></ol>',
2121
template: '<template><article><p>Test</p></article></template>',
22-
};
22+
} as const;

__tests__/data/svg.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export const svg = {
22
simple: '<svg viewBox="0 0 512 512" id="foo">Inner</svg>',
33
complex:
44
'<svg height="400" width="450"><path id="lineAB" d="M 100 350 l 150 -300" stroke="red" stroke-width="3" fill="none"></path><g stroke="black" stroke-width="3" fill="black"><circle id="pointA" cx="100" cy="350" r="3"></circle></g><g font-size="30" font-family="sans-serif" fill="black" stroke="none" text-anchor="middle"><text x="100" y="350" dx="-30">A</text></g>Your browser does not support inline SVG.</svg>',
5-
};
5+
} as const;

0 commit comments

Comments
 (0)