Skip to content

Commit 4266086

Browse files
committed
simplify test structure and fix test names
1 parent c255153 commit 4266086

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/utils/test/severity.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { severityFromString, validSeverityLevels } from '../src/severity';
22

33
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');
86
});
9-
describe('default to log', () => {
7+
8+
test('defaults to log', () => {
109
expect(severityFromString('foo')).toBe('log');
1110
});
12-
describe('allows ', () => {
11+
12+
test('acts as a pass-through for valid level strings', () => {
1313
for (const level of validSeverityLevels) {
1414
expect(severityFromString(level)).toBe(level);
1515
}

0 commit comments

Comments
 (0)