Skip to content

Commit b588cbd

Browse files
committed
test: update snapshots and tests for style API changes
1 parent e960352 commit b588cbd

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

src/__tests__/__snapshots__/documenter.test.ts.snap

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,102 @@ If avatar is being used, set its \`loading\` state to true.",
215215
"optional": true,
216216
"type": "boolean",
217217
},
218+
{
219+
"inlineType": {
220+
"name": "ChatBubbleProps.Style",
221+
"properties": [
222+
{
223+
"inlineType": {
224+
"name": "object",
225+
"properties": [
226+
{
227+
"name": "background",
228+
"optional": true,
229+
"type": "string",
230+
},
231+
{
232+
"name": "borderColor",
233+
"optional": true,
234+
"type": "string",
235+
},
236+
{
237+
"name": "borderRadius",
238+
"optional": true,
239+
"type": "string",
240+
},
241+
{
242+
"name": "borderWidth",
243+
"optional": true,
244+
"type": "string",
245+
},
246+
{
247+
"name": "boxShadow",
248+
"optional": true,
249+
"type": "string",
250+
},
251+
{
252+
"name": "color",
253+
"optional": true,
254+
"type": "string",
255+
},
256+
{
257+
"name": "fontSize",
258+
"optional": true,
259+
"type": "string",
260+
},
261+
{
262+
"name": "fontWeight",
263+
"optional": true,
264+
"type": "string",
265+
},
266+
{
267+
"name": "paddingBlock",
268+
"optional": true,
269+
"type": "string",
270+
},
271+
{
272+
"name": "paddingInline",
273+
"optional": true,
274+
"type": "string",
275+
},
276+
{
277+
"name": "rowGap",
278+
"optional": true,
279+
"type": "string",
280+
},
281+
],
282+
"type": "object",
283+
},
284+
"name": "bubble",
285+
"optional": true,
286+
"type": "{ background?: string | undefined; borderColor?: string | undefined; borderRadius?: string | undefined; borderWidth?: string | undefined; boxShadow?: string | undefined; color?: string | undefined; ... 4 more ...; paddingInline?: string | undefined; }",
287+
},
288+
{
289+
"inlineType": {
290+
"name": "{ columnGap?: string | undefined; }",
291+
"properties": [
292+
{
293+
"name": "columnGap",
294+
"optional": true,
295+
"type": "string",
296+
},
297+
],
298+
"type": "object",
299+
},
300+
"name": "root",
301+
"optional": true,
302+
"type": "{ columnGap?: string | undefined; }",
303+
},
304+
],
305+
"type": "object",
306+
},
307+
"name": "style",
308+
"optional": true,
309+
"systemTags": [
310+
"core",
311+
],
312+
"type": "ChatBubbleProps.Style",
313+
},
218314
{
219315
"description": "Defines the type of the chat bubble and sets its color accordingly.",
220316
"inlineType": {

src/avatar/__tests__/avatar.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ describe("Avatar", () => {
125125
});
126126

127127
test("style api", () => {
128+
vi.mock("../internal/environment", () => ({
129+
SYSTEM: "core",
130+
}));
128131
const ariaLabel = "User avatar JD Jane Doe";
129132
const wrapper = renderAvatar({
130133
ariaLabel,

0 commit comments

Comments
 (0)