@@ -9,9 +9,7 @@ import {getFormat} from '../format';
9
9
10
10
describe ( 'getFormat' , ( ) => {
11
11
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' ) ;
15
13
expect ( getFormat ( { frontMatterFormat : 'md' , filePath : 'xyz.mdx' } ) ) . toBe (
16
14
'md' ,
17
15
) ;
@@ -24,9 +22,9 @@ describe('getFormat', () => {
24
22
} ) ;
25
23
26
24
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
+ ) ;
30
28
expect (
31
29
getFormat ( { frontMatterFormat : 'detect' , filePath : 'xyz.markdown' } ) ,
32
30
) . toBe ( 'md' ) ;
@@ -37,9 +35,9 @@ describe('getFormat', () => {
37
35
expect (
38
36
getFormat ( { frontMatterFormat : 'detect' , filePath : 'folder/xyz.markdown' } ) ,
39
37
) . 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
+ ) ;
43
41
expect (
44
42
getFormat ( { frontMatterFormat : 'detect' , filePath : 'folder/xyz.mdx' } ) ,
45
43
) . toBe ( 'mdx' ) ;
0 commit comments