Skip to content

Commit ce7d992

Browse files
fix linter
1 parent 7c79142 commit ce7d992

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

packages/process/.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"tabWidth": 4,
44
"singleQuote": true,
55
"trailingComma": "all"
6-
}
6+
}

packages/process/src/transformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function transformer({ content, tags, layout }) {
3333
if (layout) {
3434
dependencies += `import INTERNAL__LAYOUT from '${layout}';`;
3535
dependencies += `import {${[...components].join(
36-
', '
36+
', ',
3737
)}} from '${layout}';`;
3838
}
3939

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
import test from 'ava';
22
import { transformer } from './transformer.js';
33

4-
test('can parse markdoc', t => {
5-
t.is(transformer({
6-
content: '# Hello World',
7-
tags: {},
8-
layout: null,
9-
}), '<article><h1>Hello World</h1></article>');
4+
test('can parse markdoc', (t) => {
5+
t.is(
6+
transformer({
7+
content: '# Hello World',
8+
tags: {},
9+
layout: null,
10+
}),
11+
'<article><h1>Hello World</h1></article>',
12+
);
1013
});
1114

12-
test('can add layout', t => {
13-
t.is(transformer({
14-
content: 'Lorem Ipsum',
15-
tags: {},
16-
layout: './some/layout.svelte',
17-
}), '<script>import INTERNAL__LAYOUT from \'./some/layout.svelte\';import {} from \'./some/layout.svelte\';</script><INTERNAL__LAYOUT><article><p>Lorem Ipsum</p></article></INTERNAL__LAYOUT>');
18-
});
15+
test('can add layout', (t) => {
16+
t.is(
17+
transformer({
18+
content: 'Lorem Ipsum',
19+
tags: {},
20+
layout: './some/layout.svelte',
21+
}),
22+
"<script>import INTERNAL__LAYOUT from './some/layout.svelte';import {} from './some/layout.svelte';</script><INTERNAL__LAYOUT><article><p>Lorem Ipsum</p></article></INTERNAL__LAYOUT>",
23+
);
24+
});

0 commit comments

Comments
 (0)