Skip to content

Commit b6b29a0

Browse files
style: use single quotes in test for consistency
Address CodeRabbit nit: align quote style in normalizeInputType options extraction tests with the rest of the file.
1 parent 7de069d commit b6b29a0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

code/core/src/preview-api/modules/store/csf/normalizeInputTypes.test.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,35 +124,35 @@ describe('normalizeInputTypes', () => {
124124
});
125125
});
126126

127-
describe("normalizeInputType - options extraction", () => {
128-
it("extracts options from inside control object to top level", () => {
127+
describe('normalizeInputType - options extraction', () => {
128+
it('extracts options from inside control object to top level', () => {
129129
expect(
130130
normalizeInputType(
131131
{
132-
control: { type: "select", options: ["a", "b", "c"] },
132+
control: { type: 'select', options: ['a', 'b', 'c'] },
133133
},
134-
"arg"
134+
'arg'
135135
)
136136
).toEqual({
137-
name: "arg",
138-
options: ["a", "b", "c"],
139-
control: { type: "select", disable: false },
137+
name: 'arg',
138+
options: ['a', 'b', 'c'],
139+
control: { type: 'select', disable: false },
140140
});
141141
});
142142

143-
it("does not override existing top-level options with control.options", () => {
143+
it('does not override existing top-level options with control.options', () => {
144144
expect(
145145
normalizeInputType(
146146
{
147-
options: ["x", "y"],
148-
control: { type: "select", options: ["a", "b", "c"] },
147+
options: ['x', 'y'],
148+
control: { type: 'select', options: ['a', 'b', 'c'] },
149149
},
150-
"arg"
150+
'arg'
151151
)
152152
).toEqual({
153-
name: "arg",
154-
options: ["x", "y"],
155-
control: { type: "select", options: ["a", "b", "c"], disable: false },
153+
name: 'arg',
154+
options: ['x', 'y'],
155+
control: { type: 'select', options: ['a', 'b', 'c'], disable: false },
156156
});
157157
});
158158
});

0 commit comments

Comments
 (0)