@@ -2,20 +2,18 @@ import {tags} from '../../src';
2
2
3
3
const isCI = process . argv [ 2 ] === '--ci' ;
4
4
5
- describe ( 'authors test' , ( ) => {
5
+ describe ( 'tags test' , ( ) => {
6
6
test ( 'default' , async ( ) => {
7
7
const tag = await tags ( ) ;
8
8
9
9
if ( isCI ) {
10
10
expect ( tag ) . toStrictEqual ( [ ] ) ;
11
11
} else {
12
- expect ( tag ) . toStrictEqual ( [
13
- { hash : '24c2a9e90836d3eb13693099568408dca476b5cc' , name : 'v0.1.0' } ,
14
- { hash : 'ca0c3b48f237d820b0cc9ef87bbed16de2a1cf5f' , name : 'v0.1.1' } ,
15
- { hash : '41348ee32aadb9405f1555cbdae2ac3fdb8595b8' , name : 'v0.2.0' } ,
16
- { hash : '81c1d84d22d4d0b3ace5c1652d8ba37b8bcb2844' , name : 'v0.3.0' } ,
17
- { hash : 'fa5acd4263a4a527557414764f4f823464a8f509' , name : 'v0.3.1' }
18
- ] ) ;
12
+ expect ( tag ) . toContainEqual ( { hash : '24c2a9e90836d3eb13693099568408dca476b5cc' , name : 'v0.1.0' } ) ;
13
+ expect ( tag ) . toContainEqual ( { hash : 'ca0c3b48f237d820b0cc9ef87bbed16de2a1cf5f' , name : 'v0.1.1' } ) ;
14
+ expect ( tag ) . toContainEqual ( { hash : '41348ee32aadb9405f1555cbdae2ac3fdb8595b8' , name : 'v0.2.0' } ) ;
15
+ expect ( tag ) . toContainEqual ( { hash : '81c1d84d22d4d0b3ace5c1652d8ba37b8bcb2844' , name : 'v0.3.0' } ) ;
16
+ expect ( tag ) . toContainEqual ( { hash : 'fa5acd4263a4a527557414764f4f823464a8f509' , name : 'v0.3.1' } ) ;
19
17
}
20
18
} ) ;
21
19
} ) ;
0 commit comments