Skip to content

Commit a51bf5e

Browse files
committed
test: improve type safety in customUpdater test
- Replaced `any` with `unknown` for type safety.
1 parent 64bd71d commit a51bf5e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Author: Taj <[email protected]>
77
* Homepage: https://github.com/taj54/universal-version-bump#readme
88
* License: MIT
9-
* Generated on Fri, 29 Aug 2025 19:02:47 GMT
9+
* Generated on Fri, 29 Aug 2025 19:18:30 GMT
1010
*/
1111
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
1212
/******/ var __webpack_modules__ = ({

tests/updaters/customUpdater.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ describe('CustomUpdater', () => {
2121
customUpdater = new CustomUpdater(filePath, variableName);
2222

2323
// Mock the constructor's internal assignments
24-
(customUpdater as any).fileHandler = mockFileHandler;
25-
(customUpdater as any).manifestParser = mockManifestParser;
24+
(customUpdater as unknown).fileHandler = mockFileHandler;
25+
(customUpdater as unknown).manifestParser = mockManifestParser;
2626
});
2727

2828
it('should always return true for canHandle', () => {

0 commit comments

Comments
 (0)