Skip to content

Commit 516a1de

Browse files
committed
fix lint issue
1 parent ed22775 commit 516a1de

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

packages/docusaurus-mdx-loader/src/__tests__/format.test.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import {getFormat} from '../format';
99

1010
describe('getFormat', () => {
1111
it('uses frontMatter format over anything else', () => {
12-
expect(getFormat({frontMatterFormat: 'md', filePath: 'xyz.md'})).toBe(
13-
'md',
14-
);
12+
expect(getFormat({frontMatterFormat: 'md', filePath: 'xyz.md'})).toBe('md');
1513
expect(getFormat({frontMatterFormat: 'md', filePath: 'xyz.mdx'})).toBe(
1614
'md',
1715
);
@@ -24,9 +22,9 @@ describe('getFormat', () => {
2422
});
2523

2624
it('detects appropriate format from file extension', () => {
27-
expect(
28-
getFormat({frontMatterFormat: 'detect', filePath: 'xyz.md'}),
29-
).toBe('md');
25+
expect(getFormat({frontMatterFormat: 'detect', filePath: 'xyz.md'})).toBe(
26+
'md',
27+
);
3028
expect(
3129
getFormat({frontMatterFormat: 'detect', filePath: 'xyz.markdown'}),
3230
).toBe('md');
@@ -37,9 +35,9 @@ describe('getFormat', () => {
3735
expect(
3836
getFormat({frontMatterFormat: 'detect', filePath: 'folder/xyz.markdown'}),
3937
).toBe('md');
40-
expect(
41-
getFormat({frontMatterFormat: 'detect', filePath: 'xyz.mdx'}),
42-
).toBe('mdx');
38+
expect(getFormat({frontMatterFormat: 'detect', filePath: 'xyz.mdx'})).toBe(
39+
'mdx',
40+
);
4341
expect(
4442
getFormat({frontMatterFormat: 'detect', filePath: 'folder/xyz.mdx'}),
4543
).toBe('mdx');

0 commit comments

Comments
 (0)