@@ -3,17 +3,17 @@ import { readFileSync } from 'fs';
3
3
import * as path from 'path' ;
4
4
5
5
// Packages
6
- import glob from 'globby ' ;
6
+ import glob from 'glob ' ;
7
7
8
8
// Ours
9
9
import { parse } from '../../src' ;
10
10
11
11
const cwd = path . resolve ( __dirname , 'feeds' ) ;
12
12
let samples = [ ] ;
13
13
14
- beforeAll ( async ( ) => {
14
+ beforeAll ( ( ) => {
15
15
// List available samples
16
- samples = samples . concat ( await glob ( '*' , { cwd } ) ) ;
16
+ samples = samples . concat ( glob . sync ( '*' , { cwd } ) ) ;
17
17
} ) ;
18
18
19
19
test ( 'Samples' , async ( ) => {
@@ -36,10 +36,10 @@ test('Samples', async () => {
36
36
links : feed . links ( ) ,
37
37
feedURL : feed . feedURL ( ) ,
38
38
language : feed . language ( ) ,
39
- generator : feed . generator ( )
39
+ generator : feed . generator ( ) ,
40
40
} as any ;
41
41
42
- items = items . map ( item => ( {
42
+ items = items . map ( ( item ) => ( {
43
43
...item ,
44
44
id : item . id ( ) ,
45
45
title : item . title ( ) ,
@@ -49,7 +49,7 @@ test('Samples', async () => {
49
49
published : item . published ( ) ,
50
50
updated : item . updated ( ) ,
51
51
links : item . links ( ) ,
52
- enclosures : item . enclosures ( )
52
+ enclosures : item . enclosures ( ) ,
53
53
} ) ) as any [ ] ;
54
54
55
55
expect ( { feed, items } ) . toMatchSnapshot ( file ) ;
0 commit comments