We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda6d7a commit e482d24Copy full SHA for e482d24
test/roarr/roarr.ts
@@ -70,6 +70,17 @@ test('logs an empty message when first parameter is an object and the second par
70
]);
71
});
72
73
+test('throws in case of invalid invocation', (t) => {
74
+ const log = createLoggerWithHistory();
75
+
76
+ t.throws(() => {
77
+ // @ts-expect-error Invalid invocation
78
+ log({}, {});
79
+ }, {
80
+ message: 'Message must be a string. Received object.',
81
+ });
82
+});
83
84
test('formats message using sprintf', (t) => {
85
const log = createLoggerWithHistory();
86
0 commit comments