This commit is contained in:
1 parent
8efd032cc6
commit
df38dccbf1
735 files changed
+128321
-120870
No files matched your search
@@ -5,11 +5,14 @@ import { describe, expect, it } from "vitest";
|
||||
import { CmsInfoPopup } from "@/components/cms-info-popup";
|
||||
|
||||
describe("CmsInfoPopup", () => {
|
||||
it("renders the footer trigger", () => {
|
||||
const html = renderToStaticMarkup(<CmsInfoPopup />);
|
||||
const source = readFileSync(resolve(process.cwd(), "src/components/cms-info-popup.tsx"), "utf8");
|
||||
expect(html).toContain("EpicNext Info");
|
||||
expect(source).toContain(">EpicNext<");
|
||||
expect(source).toContain("Modern Next.js CMS");
|
||||
});
|
||||
it("renders the footer trigger", () => {
|
||||
const html = renderToStaticMarkup(<CmsInfoPopup />);
|
||||
const source = readFileSync(
|
||||
resolve(process.cwd(), "src/components/cms-info-popup.tsx"),
|
||||
"utf8",
|
||||
);
|
||||
expect(html).toContain("EpicNext Info");
|
||||
expect(source).toContain(">EpicNext<");
|
||||
expect(source).toContain("Modern Next.js CMS");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user