Skip to content

Commit 9fe0131

Browse files
committed
plop test code
1 parent c63afe4 commit 9fe0131

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

__test__/plop-generate.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ describe('Plop Generator', () => {
3838
});
3939
// Clean up generated files
4040
afterAll(() => {
41-
fs.unlinkSync(postPath);
42-
fs.rmdirSync(imagePath, { recursive: true });
41+
fs.existsSync(postPath) && fs.unlinkSync(postPath);
42+
fs.existsSync(imagePath) && fs.rmdirSync(imagePath, { recursive: true });
4343
});

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { PostManager } from '@lib/post-manager';
88

99
export default function Home() {
1010
return (
11-
<div className="flex flex-col relative mx-3">
11+
<div className="flex flex-col relative mx-3 max-w-[1080px]">
1212
<section className="relative w-full flex flex-col md:flex-row md:items-center">
1313
<div className="h-full w-full md:w-1/3 flex p-8 justify-center">
1414
<div className="py-4 md:py-6 px-8 block rounded-lg hover:bg-white/10 ">

0 commit comments

Comments
 (0)