diff --git a/index.test.js b/index.test.js index 1f307db..34950c0 100644 --- a/index.test.js +++ b/index.test.js @@ -2,20 +2,18 @@ import { it, expect } from "vitest"; import { remark } from "remark"; import smartypants from "./"; -const { process } = remark().use(smartypants); - it("implements SmartyPants", async () => { - const file = await process('# "Hello World!"'); + const file = await remark().use(smartypants).process('# "Hello World!"'); expect(String(file)).toMatchInlineSnapshot(` "# “Hello World!” " `); }); -it.todo("handles quotes around links", async () => { - const file = await process( - '"wow". go to "[google](https://www.google.com/)" today.', - ); +it.skip("handles quotes around links", async () => { + const file = await remark() + .use(smartypants) + .process('"wow". go to "[google](https://www.google.com/)" today.'); expect(String(file)).toMatchInlineSnapshot(` "“wow”. go to “ [google](https://www.google.com/)