@@ -9,7 +9,7 @@ const fixtures = JSON.parse(
9
9
) )
10
10
)
11
11
12
- test ( 'simple stuff ' , function ( t ) {
12
+ test ( 'basic ' , function ( t ) {
13
13
const slugger = new GithubSlugger ( )
14
14
15
15
// @ts -expect-error: not allowed by types but handled gracefully in the code.
@@ -19,13 +19,15 @@ test('simple stuff', function (t) {
19
19
t . equals ( slugger . slug ( 'fooCamelCase' , true ) , 'fooCamelCase' , 'should support `maintainCase`' ) // foocamelcase
20
20
t . equals ( slugger . slug ( 'fooCamelCase' ) , 'foocamelcase' , 'should support `maintainCase` (reference)' ) // foocamelcase-1
21
21
22
+ t . equals ( slugger . slug ( 'asd' ) , 'asd' , 'should slug' )
23
+ t . equals ( slugger . slug ( 'asd' ) , 'asd-1' , 'should create unique slugs for repeated values' )
24
+
22
25
t . end ( )
23
26
} )
24
27
25
28
test ( 'static method' , function ( t ) {
26
- t . equals ( slug ( 'foo' ) , 'foo' )
27
- t . equals ( slug ( 'foo bar' ) , 'foo-bar' )
28
- t . equals ( slug ( 'foo' ) , 'foo' ) // idem potent
29
+ t . equals ( slug ( 'foo' ) , 'foo' , 'should slug' )
30
+ t . equals ( slug ( 'foo' ) , 'foo' , 'should create same slugs for repeated values' )
29
31
t . end ( )
30
32
} )
31
33
0 commit comments