Skip to content

Commit 1cf1341

Browse files
committed
fix: fix typos and update tests. Some tests still fail
1 parent 4fe7772 commit 1cf1341

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

packages/babel-plugin/__tests__/stylex-transform-create-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ describe('@stylexjs/babel-plugin', () => {
12621262
default: {
12631263
marginTop: "xxsse2n",
12641264
marginRight: "x1wh8b8d",
1265-
marginBottom: "xat24cr",
1265+
marginBottom: "x1du4iog",
12661266
$$css: true
12671267
},
12681268
error: {

packages/babel-plugin/__tests__/stylex-transform-logical-properties-test.js

+20-20
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ describe('@stylexjs/babel-plugin', () => {
451451
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
452452
var _inject2 = _inject;
453453
import stylex from 'stylex';
454-
_inject2(".x10im51j{margin-block:0}", 2000);
455-
const classnames = "x10im51j";"
454+
_inject2(".x1yslrto{margin-block:0px}", 2000);
455+
const classnames = "x1yslrto";"
456456
`);
457457
});
458458

@@ -467,8 +467,8 @@ describe('@stylexjs/babel-plugin', () => {
467467
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
468468
var _inject2 = _inject;
469469
import stylex from 'stylex';
470-
_inject2(".xat24cr{margin-bottom:0}", 4000);
471-
const classnames = "xat24cr";"
470+
_inject2(".x1du4iog{margin-bottom:0px}", 4000);
471+
const classnames = "x1du4iog";"
472472
`);
473473
});
474474

@@ -483,8 +483,8 @@ describe('@stylexjs/babel-plugin', () => {
483483
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
484484
var _inject2 = _inject;
485485
import stylex from 'stylex';
486-
_inject2(".xdj266r{margin-top:0}", 4000);
487-
const classnames = "xdj266r";"
486+
_inject2(".x1q12cbh{margin-top:0px}", 4000);
487+
const classnames = "x1q12cbh";"
488488
`);
489489
});
490490

@@ -499,8 +499,8 @@ describe('@stylexjs/babel-plugin', () => {
499499
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
500500
var _inject2 = _inject;
501501
import stylex from 'stylex';
502-
_inject2(".xrxpjvj{margin-inline:0}", 2000);
503-
const classnames = "xrxpjvj";"
502+
_inject2(".xmbzetd{margin-inline:0px}", 2000);
503+
const classnames = "xmbzetd";"
504504
`);
505505
});
506506

@@ -515,8 +515,8 @@ describe('@stylexjs/babel-plugin', () => {
515515
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
516516
var _inject2 = _inject;
517517
import stylex from 'stylex';
518-
_inject2(".x14z9mp{margin-inline-end:0}", 3000);
519-
const classnames = "x14z9mp";"
518+
_inject2(".xfbia9g{margin-inline-end:0px}", 3000);
519+
const classnames = "xfbia9g";"
520520
`);
521521
});
522522

@@ -531,8 +531,8 @@ describe('@stylexjs/babel-plugin', () => {
531531
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
532532
var _inject2 = _inject;
533533
import stylex from 'stylex';
534-
_inject2(".x1lziwak{margin-inline-start:0}", 3000);
535-
const classnames = "x1lziwak";"
534+
_inject2(".x1tt3wx9{margin-inline-start:0px}", 3000);
535+
const classnames = "x1tt3wx9";"
536536
`);
537537
});
538538

@@ -665,8 +665,8 @@ describe('@stylexjs/babel-plugin', () => {
665665
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
666666
var _inject2 = _inject;
667667
import stylex from 'stylex';
668-
_inject2(".x14z9mp{margin-inline-end:0}", 3000);
669-
const classnames = "x14z9mp";"
668+
_inject2(".xfbia9g{margin-inline-end:0px}", 3000);
669+
const classnames = "xfbia9g";"
670670
`);
671671
});
672672

@@ -681,8 +681,8 @@ describe('@stylexjs/babel-plugin', () => {
681681
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
682682
var _inject2 = _inject;
683683
import stylex from 'stylex';
684-
_inject2(".xrxpjvj{margin-inline:0}", 2000);
685-
const classnames = "xrxpjvj";"
684+
_inject2(".xmbzetd{margin-inline:0px}", 2000);
685+
const classnames = "xmbzetd";"
686686
`);
687687
});
688688

@@ -697,8 +697,8 @@ describe('@stylexjs/babel-plugin', () => {
697697
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
698698
var _inject2 = _inject;
699699
import stylex from 'stylex';
700-
_inject2(".x1lziwak{margin-inline-start:0}", 3000);
701-
const classnames = "x1lziwak";"
700+
_inject2(".x1tt3wx9{margin-inline-start:0px}", 3000);
701+
const classnames = "x1tt3wx9";"
702702
`);
703703
});
704704

@@ -713,8 +713,8 @@ describe('@stylexjs/babel-plugin', () => {
713713
"import _inject from "@stylexjs/stylex/lib/stylex-inject";
714714
var _inject2 = _inject;
715715
import stylex from 'stylex';
716-
_inject2(".x10im51j{margin-block:0}", 2000);
717-
const classnames = "x10im51j";"
716+
_inject2(".x1yslrto{margin-block:0px}", 2000);
717+
const classnames = "x1yslrto";"
718718
`);
719719
});
720720

packages/open-props/__tests__/__snapshots__/open-props-compile-test.js.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const fadeOut = "x1mi9bte-B";
1818
const fadeOutBloom = "xd93vs1-B";
1919
const fadeOutBloomDark = "x18q36hy-B";
2020
const scaleUp = "x1gdf4cp-B";
21-
const scaleDown = "x1uvjygu-B";
21+
const scaleDown = "xjnts4g-B";
2222
const slideOutUp = "xyz4r9t-B";
2323
const slideOutDown = "xyz4r9t-B";
2424
const slideOutRight = "x1qkfcoh-B";
@@ -121,9 +121,9 @@ exports[`commonJS results of exported styles and variables animationNames.stylex
121121
1,
122122
],
123123
[
124-
"x1uvjygu-B",
124+
"xjnts4g-B",
125125
{
126-
"ltr": "@keyframes x1uvjygu-B{to{transform:scale(.75);}}",
126+
"ltr": "@keyframes xjnts4g-B{to{transform:scale(0.75);}}",
127127
"rtl": null,
128128
},
129129
1,
@@ -259,7 +259,7 @@ exports[`commonJS results of exported styles and variables animationNames.stylex
259259
[
260260
"x1p4jv38",
261261
{
262-
"ltr": ":root{--xwgfw4z:x1wv65fh-B;--xwpxwog:x3cospo-B;--x1mrv0ld:x1mi9bte-B;--x1f9mpsk:xd93vs1-B;--x1dlahej:x1gdf4cp-B;--xchc88h:x1uvjygu-B;--x1wwe1u9:xyz4r9t-B;--xojb453:xyz4r9t-B;--x1erxhtw:x1qkfcoh-B;--x2p2omt:x1c1el34-B;--x1lyv700:x5q0om7-B;--x1dhg8ry:xiaildr-B;--x14d2ijb:x1pzz5b5-B;--x1r6uxce:x2i3tye-B;--x1o3zfci:xui5qpo-B;--xhf4ud:x1oudpiw-B;--x7jv0fk:x1uh2x5g-B;--x1x4v7e3:xk6fz2t-B;--xg5no4m:x13kz0yu-B;--x7mxyyy:xtacmzc-B;--xs1cbdk:xmu8adp-B;--x1gf7j19:x1wtl5zh-B;}",
262+
"ltr": ":root{--xwgfw4z:x1wv65fh-B;--xwpxwog:x3cospo-B;--x1mrv0ld:x1mi9bte-B;--x1f9mpsk:xd93vs1-B;--x1dlahej:x1gdf4cp-B;--xchc88h:xjnts4g-B;--x1wwe1u9:xyz4r9t-B;--xojb453:xyz4r9t-B;--x1erxhtw:x1qkfcoh-B;--x2p2omt:x1c1el34-B;--x1lyv700:x5q0om7-B;--x1dhg8ry:xiaildr-B;--x14d2ijb:x1pzz5b5-B;--x1r6uxce:x2i3tye-B;--x1o3zfci:xui5qpo-B;--xhf4ud:x1oudpiw-B;--x7jv0fk:x1uh2x5g-B;--x1x4v7e3:xk6fz2t-B;--xg5no4m:x13kz0yu-B;--x7mxyyy:xtacmzc-B;--xs1cbdk:xmu8adp-B;--x1gf7j19:x1wtl5zh-B;}",
263263
"rtl": null,
264264
},
265265
0,

packages/style-value-parser/src/css-types/time.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export class Time {
2020
toString(): string {
2121
// Always use the shortest representation
2222
if (this.unit === 'ms') {
23-
if(this.value <= 99) {
24-
return `${this.value}ms`
23+
if (this.value <= 99) {
24+
return `${this.value}ms`;
2525
}
2626
return `${this.value / 1000}s`;
2727
}

packages/style-value-parser/src/properties/__tests__/box-shadow.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('Test CSS property: `box-shadow`', () => {
6767
);
6868
});
6969

70-
test('Multiple shadows seperated by comma', () => {
70+
test('Multiple shadows separated by comma', () => {
7171
expect(
7272
BoxShadow.parse.parseToEnd(
7373
'10px 10px 5px 10px #000000 inset, 3px 3px 2px 0px #0ba266',
@@ -87,7 +87,7 @@ describe('Test CSS property: `box-shadow`', () => {
8787
new Px(3),
8888
new Px(2),
8989
new Px(0),
90-
new HashColor('0ba266'),
90+
new HashColor((0x0ba266).toString(16)),
9191
),
9292
]),
9393
);

0 commit comments

Comments
 (0)