Compare commits

..

2 Commits

Author SHA1 Message Date
19d6b52ddb 1.0.38 2020-07-08 02:05:51 +00:00
cf69e5436c fix(core): update 2020-07-08 02:05:51 +00:00
3 changed files with 5 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@gitzone/tstest",
"version": "1.0.37",
"version": "1.0.38",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@gitzone/tstest",
"version": "1.0.37",
"version": "1.0.38",
"private": false,
"description": "a test utility to run tests that match test/**/*.ts",
"main": "dist_ts/index.js",

View File

@ -119,7 +119,9 @@ export class TsTest {
// create an array that will later be joined into a string.
const stringArray = [];
if (typeof obj === 'object' && obj.join === undefined) {
if (typeof obj === 'object' && typeof obj.toString === 'function') {
stringArray.push(obj.toString());
} else if (typeof obj === 'object' && obj.join === undefined) {
stringArray.push('{');
for (const prop of Object.keys(obj)) {
stringArray.push(prop, ': ', convertToText(obj[prop]), ',');