(test)
| 176 | } |
| 177 | |
| 178 | function metaProperties(test) { |
| 179 | const props = [] |
| 180 | const meta = test.meta || {} |
| 181 | for (const key of Object.keys(meta)) { |
| 182 | if (meta[key] === undefined || meta[key] === null) continue |
| 183 | props.push([key, stringifyMeta(meta[key])]) |
| 184 | } |
| 185 | if (Array.isArray(test.tags) && test.tags.length) { |
| 186 | props.push(['tags', test.tags.join(' ')]) |
| 187 | } |
| 188 | if (test.retries > 0 || test.retryNum > 0) { |
| 189 | props.push(['retries', String(test.retryNum || test.retries)]) |
| 190 | } |
| 191 | return props |
| 192 | } |
| 193 | |
| 194 | function stringifyMeta(value) { |
| 195 | if (typeof value === 'string') return value |
no test coverage detected