Skip to content

Commit 159c23f

Browse files
committed
change error messages
1 parent cb60694 commit 159c23f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/components/test/components/MethodGenerator.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe('MethodGenerator', () => {
275275
methodLogic="print('Connecting...')"
276276
indent={-2}
277277
/>
278-
)).toThrow(/Indent size must be >= 0. Received: /);
278+
)).toThrow(/\"indent\" must be >= 0. Received: -2/);
279279
});
280280

281281
test('throws an error when the newLines is negative', () => {
@@ -288,7 +288,7 @@ describe('MethodGenerator', () => {
288288
methodLogic="print('Connecting...')"
289289
newLines={-2}
290290
/>
291-
)).toThrow(/Invalid newLines value. Must be >= 0. Received:/);
291+
)).toThrow(/\"newLines\" must be >= 0. Received: -2/);
292292
});
293293

294294
test('throws an error when the methodName is non-empty string', () => {

0 commit comments

Comments
 (0)