Skip to content

Commit d101f2e

Browse files
committed
fix: warning message format
1 parent f05ecc3 commit d101f2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/utils/logging/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { config } from '@global/config';
99
export const printIonWarning = (message: string, ...params: any[]) => {
1010
const logLevel = config.get('logLevel', 'WARN');
1111
if (['WARN'].includes(logLevel)) {
12-
return console.warn(`[Ionic Warn]: ${message}`, ...params);
12+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
1313
}
1414
};
1515

core/src/utils/logging/test/logging.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Logging', () => {
2222

2323
printIonWarning('This is a warning message');
2424

25-
expect(consoleWarnSpy).toHaveBeenCalledWith('[Ionic Warn]: This is a warning message');
25+
expect(consoleWarnSpy).toHaveBeenCalledWith('[Ionic Warning]: This is a warning message');
2626
});
2727
});
2828

@@ -32,7 +32,7 @@ describe('Logging', () => {
3232

3333
printIonWarning('This is a warning message');
3434

35-
expect(consoleWarnSpy).toHaveBeenCalledWith('[Ionic Warn]: This is a warning message');
35+
expect(consoleWarnSpy).toHaveBeenCalledWith('[Ionic Warning]: This is a warning message');
3636
});
3737
});
3838

0 commit comments

Comments
 (0)