Skip to content

Commit

Permalink
Update Sandpack.test.tsx and styles.test.ts.snap
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Aug 30, 2022
1 parent 0da156a commit 9969bf9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sandpack-react/src/presets/Sandpack.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("getSandpackCssText", () => {
</SandpackProvider>
);

expect(getSandpackCssText().length).toBe(3600);
expect(getSandpackCssText().length).toBe(3590);
expect(getSandpackCssText()).not.toContain(componentClassName);
});

Expand Down
16 changes: 10 additions & 6 deletions sandpack-react/src/styles/__snapshots__/styles.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Object {
"surface1": "red",
"surface2": "red",
"surface3": "red",
"warning": "#6A4516",
"warningSurface": "#FEF2C0",
"warning": "#E7C400",
"warningSurface": "#3A3000",
},
"font": Object {
"body": "",
Expand Down Expand Up @@ -67,7 +67,8 @@ Object {

exports[`standardizeTheme should return a custom theme 1`] = `
Object {
"id": "sp-376277195",
"id": "sp-634349132",
"mode": "dark",
"theme": Object {
"colors": Object {
"accent": "red",
Expand All @@ -80,8 +81,8 @@ Object {
"surface1": "red",
"surface2": "red",
"surface3": "red",
"warning": "#6A4516",
"warningSurface": "#FEF2C0",
"warning": "#E7C400",
"warningSurface": "#3A3000",
},
"font": Object {
"body": "",
Expand All @@ -107,6 +108,7 @@ Object {
exports[`standardizeTheme should return a custom theme merged with the default 1`] = `
Object {
"id": "sp-1791144801",
"mode": "light",
"theme": Object {
"colors": Object {
"accent": "blue",
Expand Down Expand Up @@ -149,6 +151,7 @@ Object {
exports[`standardizeTheme should return the \`dark\` theme 1`] = `
Object {
"id": "dark",
"mode": "light",
"theme": Object {
"colors": Object {
"accent": "#E5E5E5",
Expand Down Expand Up @@ -190,7 +193,8 @@ Object {

exports[`standardizeTheme should return the default theme 1`] = `
Object {
"id": "sp-default",
"id": "light",
"mode": "light",
"theme": Object {
"colors": Object {
"accent": "#3973E0",
Expand Down

0 comments on commit 9969bf9

Please sign in to comment.