@samitouri / QOS-React / commits / 888c537121

Wrap string values in quotes

All other types are formatted as as <type: param>

Andrew Clark committed Aug 25, 2017 at 10:12 UTC 888c53712114da2cad7c477ba86fef857e89b0f8
1 file changed +3 -3
scripts/attribute-behavior/src/App.js
+3 -3
@@ -1380,17 +1380,17 @@ function RendererResult({version, result, defaultValue, didWarn, didError}) {
1380 displayResult = '<symbol>';
1381 break;
1382 case 'number':
1383 - displayResult = `<Number: ${result}>`;
1383 + displayResult = `<number: ${result}>`;
1384 break;
1385 case 'string':
1386 if (result === '') {
1387 displayResult = '<empty string>';
1388 break;
1389 }
1390 - displayResult = result;
1390 + displayResult = '"' + result + '"';
1391 break;
1392 case 'boolean':
1393 - displayResult = `<Boolean: ${result}>`;
1393 + displayResult = `<boolean: ${result}>`;
1394 break;
1395 default:
1396 throw new Error('Switch statement should be exhaustive.');