Skip to content

Commit

Permalink
Fix tests for higher versions of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
silvenon committed Nov 15, 2023
1 parent e43fb42 commit 9173ba2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down

0 comments on commit 9173ba2

Please sign in to comment.