Skip to content

Commit 57cd880

Browse files
test: update fixtures
1 parent 5a420fc commit 57cd880

File tree

3 files changed

+35
-38
lines changed

3 files changed

+35
-38
lines changed

helpers/fixture.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ import { __dirname } from "../index.js";
99
*/
1010
export const getFixture = (filename, encoding = "utf8") => {
1111
const file = path.resolve(__dirname, `helpers/fixtures/${filename}`);
12-
console.log('file', file)
1312
return fs.readFileSync(file, { encoding });
1413
};

helpers/fixtures/bookmark.html

+21-22
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
<!doctype html>
2-
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<title>What I ate for lunch</title>
6-
</head>
7-
<body class="h-entry">
8-
<header>
9-
<h1 class="p-name">What I ate for lunch</h1>
10-
</header>
11-
<div class="e-content">
12-
<p>I ate a cheese sandwich, which was nice.</p>
13-
</div>
14-
<footer>
15-
<p>Published on <time class="dt-published" datetime="2019-01-12T15:55:00.000+00:00">12 January 2019</time></p>
16-
<ul>
17-
<li><a class="p-category" rel="tag" href="/tag/food">Food</a></li>
18-
<li><a class="p-category" rel="tag" href="/tag/lunch">Lunch</a></li>
19-
<li><a class="p-category" rel="tag" href="/tag/sandwiches/">Sandwiches</a></li>
20-
</ul>
21-
</footer>
22-
</body>
1+
<html lang="en">
2+
<head>
3+
<meta charset="utf-8">
4+
<title>What I ate for lunch</title>
5+
</head>
6+
<body class="h-entry">
7+
<header>
8+
<h1 class="p-name">What I ate for lunch</h1>
9+
</header>
10+
<div class="e-content">
11+
<p>I ate a cheese sandwich, which was nice.</p>
12+
</div>
13+
<footer>
14+
<p>Published on <time class="dt-published" datetime="2019-01-12T15:55:00.000+00:00">12 January 2019</time></p>
15+
<ul>
16+
<li><a class="p-category" rel="tag" href="/tag/food">Food</a></li>
17+
<li><a class="p-category" rel="tag" href="/tag/lunch">Lunch</a></li>
18+
<li><a class="p-category" rel="tag" href="/tag/sandwiches/">Sandwiches</a></li>
19+
</ul>
20+
</footer>
21+
</body>
2322
</html>
2423

helpers/fixtures/repo.html

+14-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
<!DOCTYPE html>
21
<html lang="en">
32
<head>
43
<meta charset="utf-8">
54
<title>getindiekit/mf2tojf2: Convert MF2 to JF2.</title>
65
<meta name="description" content="Convert MF2 to JF2. Contribute to getindiekit/mf2tojf2 development by creating an account on GitHub.">
7-
<meta name="twitter:image:src" content="https://opengraph.githubassets.com/6d3c627723ff987446e2917808142dfb0e2ccdd9d94db970f9a5aacbb1eb4825/getindiekit/mf2tojf2"/>
8-
<meta name="twitter:site" content="@github"/>
9-
<meta name="twitter:card" content="summary_large_image"/>
10-
<meta name="twitter:title" content="getindiekit/mf2tojf2: Convert MF2 to JF2."/>
11-
<meta name="twitter:description" content="Convert MF2 to JF2. Contribute to getindiekit/mf2tojf2 development by creating an account on GitHub."/>
12-
<meta property="og:image" content="https://opengraph.githubassets.com/6d3c627723ff987446e2917808142dfb0e2ccdd9d94db970f9a5aacbb1eb4825/getindiekit/mf2tojf2"/>
13-
<meta property="og:image:alt" content="Card identifying indieweb/mf2tojf2 repo. Notes 2 contributors, 6 stars, and 2 forks."/>
14-
<meta property="og:image:width" content="1200"/>
15-
<meta property="og:image:height" content="600"/>
16-
<meta property="og:site_name" content="GitHub"/>
17-
<meta property="og:type" content="object"/>
18-
<meta property="og:title" content="getindiekit/mf2tojf2: Convert MF2 to JF2."/>
19-
<meta property="og:url" content="https://github.com/getindiekit/mf2tojf2"/>
20-
<meta property="og:description" content="Convert MF2 to JF2. Contribute to getindiekit/mf2tojf2 development by creating an account on GitHub."/>
6+
<meta name="twitter:image:src" content="https://opengraph.githubassets.com/6d3c627723ff987446e2917808142dfb0e2ccdd9d94db970f9a5aacbb1eb4825/getindiekit/mf2tojf2">
7+
<meta name="twitter:site" content="@github">
8+
<meta name="twitter:card" content="summary_large_image">
9+
<meta name="twitter:title" content="getindiekit/mf2tojf2: Convert MF2 to JF2.">
10+
<meta name="twitter:description" content="Convert MF2 to JF2. Contribute to getindiekit/mf2tojf2 development by creating an account on GitHub.">
11+
<meta property="og:image" content="https://opengraph.githubassets.com/6d3c627723ff987446e2917808142dfb0e2ccdd9d94db970f9a5aacbb1eb4825/getindiekit/mf2tojf2">
12+
<meta property="og:image:alt" content="Card identifying indieweb/mf2tojf2 repo. Notes 2 contributors, 6 stars, and 2 forks.">
13+
<meta property="og:image:width" content="1200">
14+
<meta property="og:image:height" content="600">
15+
<meta property="og:site_name" content="GitHub">
16+
<meta property="og:type" content="object">
17+
<meta property="og:title" content="getindiekit/mf2tojf2: Convert MF2 to JF2.">
18+
<meta property="og:url" content="https://github.com/getindiekit/mf2tojf2">
19+
<meta property="og:description" content="Convert MF2 to JF2. Contribute to getindiekit/mf2tojf2 development by creating an account on GitHub.">
2120
<link rel="canonical" href="https://github.com/getindiekit/mf2tojf2">
2221
</head>
2322
<body>

0 commit comments

Comments
 (0)