Skip to content

Commit 0bb6a29

Browse files
committed
fix: incorrect test logic for skipping reload on invalid config
1 parent 3fd5e38 commit 0bb6a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ConfigLoader.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ describe('ConfigLoader', () => {
232232

233233
await configLoader.reloadConfiguration();
234234

235-
expect(changeEventSpy).toHaveBeenCalledOnce();
235+
expect(changeEventSpy).not.toHaveBeenCalled();
236236

237237
expect(consoleErrorSpy).toHaveBeenCalledWith(
238238
'Invalid regular expression for commitConfig.author.email.local.block: [invalid(regex',

0 commit comments

Comments
 (0)