Skip to content

Commit

Permalink
fix: Some small fixes (#44)
Browse files Browse the repository at this point in the history
* Match old width for fullscreen tests
* Fix error when running with no goldens generated
  • Loading branch information
svanherk authored Jun 28, 2023
1 parent 8dc33c8 commit f3cab22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/server/visual-diff-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ async function clearAllDirs(updateGoldens, vdiffPath) {
if (updateGoldens) {
await rm(vdiffPath, { force: true, recursive: true });
} else {
await clearDiffPaths(vdiffPath);
const exists = await checkFileExists(vdiffPath);
if (exists) await clearDiffPaths(vdiffPath);
}
}

Expand Down
1 change: 0 additions & 1 deletion src/server/wtr-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export class WTRConfig {
font-size: 0.95rem;
font-weight: 400;
line-height: 1.4rem;
margin: 0;
padding: 30px;
}
</style>
Expand Down

0 comments on commit f3cab22

Please sign in to comment.