We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c255153 commit 4266086Copy full SHA for 4266086
packages/utils/test/severity.test.ts
@@ -1,15 +1,15 @@
1
import { severityFromString, validSeverityLevels } from '../src/severity';
2
3
describe('severityFromString()', () => {
4
- describe('normalize warn and warning', () => {
5
- test("converts 'warn' to 'warning'", () => {
6
- expect(severityFromString('warn')).toBe('warning');
7
- });
+ test("converts 'warn' to 'warning'", () => {
+ expect(severityFromString('warn')).toBe('warning');
8
});
9
- describe('default to log', () => {
+
+ test('defaults to log', () => {
10
expect(severityFromString('foo')).toBe('log');
11
12
- describe('allows ', () => {
+ test('acts as a pass-through for valid level strings', () => {
13
for (const level of validSeverityLevels) {
14
expect(severityFromString(level)).toBe(level);
15
}
0 commit comments