Skip to content

Commit 639c131

Browse files
Jeroen Langeveldtaniki
authored andcommitted
green: Rewrite test without frontmatter
reword 53d0916 test: Green test without frontmatter
1 parent f11d1fb commit 639c131

4 files changed

Lines changed: 11 additions & 55 deletions

File tree

tests/frontmatter/comments.test.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/frontmatter/formatted.pug

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1 @@
1-
// just some paragraphs
2-
p foo
3-
p bar
4-
//- will not output within markup
5-
p foo
6-
p bar
7-
div
8-
//-
9-
Comments for your template writers.
10-
Use as much text as you want.
11-
//
12-
Comments for your HTML readers.
13-
Use as much text as you want.
14-
div
15-
//- Indented comment
16-
span Test
17-
// Indented comment
18-
span Test
19-
20-
//- Indented comment
21-
span Test
1+
#aap
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { compareFiles } from 'tests/common';
2+
import { describe, expect, it } from 'vitest';
3+
4+
describe('Frontmatter', () => {
5+
it('should format yaml frontmatter', () => {
6+
const { actual, expected } = compareFiles(__dirname);
7+
expect(actual).toBe(expected);
8+
});
9+
});

tests/frontmatter/unformatted.pug

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
1-
// just some paragraphs
2-
p foo
3-
p bar
4-
//- will not output within markup
5-
p foo
6-
p bar
7-
div
8-
//-
9-
Comments for your template writers.
10-
Use as much text as you want.
11-
//
12-
Comments for your HTML readers.
13-
Use as much text as you want.
14-
div
15-
//- Indented comment
16-
span Test
17-
// Indented comment
18-
span Test
19-
20-
21-
22-
//- Indented comment
23-
span Test
1+
div( id='aap' )

0 commit comments

Comments
 (0)