Skip to content

Commit 344f12e

Browse files
committed
fix: eslint errors
1 parent 977bb2e commit 344f12e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = {
2727
'no-use-before-define': ['error', 'nofunc'],
2828
'@typescript-eslint/no-use-before-define': ['error', 'nofunc'],
2929
'@typescript-eslint/explicit-module-boundary-types': ['off'],
30+
'@typescript-eslint/ban-ts-comment': 0,
3031
'@typescript-eslint/no-var-requires': 0,
3132
'@typescript-eslint/no-explicit-any': 0,
3233
'@typescript-eslint/no-non-null-assertion': 0,

src/__tests__/ublub/file-type.test.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ describe('Get file type tests.', () => {
77
const result = getFileType(1);
88

99
expect(result).toThrowError('The parameter must be a blob string.');
10-
} catch {}
10+
} catch (e) {
11+
console.info(e);
12+
}
1113
});
1214

1315
it('Should throw exception error if file type not supported.', () => {
1416
try {
1517
const result = getFileType('unsupported-file');
1618

1719
expect(result).toThrowError('The file type is not supported.');
18-
} catch {}
20+
} catch (e) {
21+
console.info(e);
22+
}
1923
});
2024

2125
it('Should return file type.', () => {

0 commit comments

Comments
 (0)