File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { severityFromString , validSeverityLevels } from '../src/severity' ;
2
2
3
3
describe ( 'severityFromString()' , ( ) => {
4
- describe ( 'normalize warn and warning' , ( ) => {
5
- test ( "converts 'warn' to 'warning'" , ( ) => {
6
- expect ( severityFromString ( 'warn' ) ) . toBe ( 'warning' ) ;
7
- } ) ;
4
+ test ( "converts 'warn' to 'warning'" , ( ) => {
5
+ expect ( severityFromString ( 'warn' ) ) . toBe ( 'warning' ) ;
8
6
} ) ;
9
- describe ( 'default to log' , ( ) => {
7
+
8
+ test ( 'defaults to log' , ( ) => {
10
9
expect ( severityFromString ( 'foo' ) ) . toBe ( 'log' ) ;
11
10
} ) ;
12
- describe ( 'allows ' , ( ) => {
11
+
12
+ test ( 'acts as a pass-through for valid level strings' , ( ) => {
13
13
for ( const level of validSeverityLevels ) {
14
14
expect ( severityFromString ( level ) ) . toBe ( level ) ;
15
15
}
You can’t perform that action at this time.
0 commit comments