Fix row.spec.ts
This commit is contained in:
parent
51b12645c5
commit
28d3c18aba
|
@ -2515,15 +2515,14 @@ if (descriptions.length) {
|
|||
csvString: exportedValue,
|
||||
})
|
||||
|
||||
const stringified = (value: string) =>
|
||||
JSON.stringify(value).replace(/"/g, "'")
|
||||
const stringified = (value: string) => JSON.stringify(value)
|
||||
|
||||
const matchingObject = (
|
||||
key: string,
|
||||
value: any,
|
||||
isArray: boolean
|
||||
) => {
|
||||
const objectMatcher = `{'${key}':'${value[key]}'.*?}`
|
||||
const objectMatcher = `{\"${key}\":\"${value[key]}\".*?}`
|
||||
if (isArray) {
|
||||
return expect.stringMatching(
|
||||
new RegExp(`^\\[${objectMatcher}\\]$`)
|
||||
|
|
Loading…
Reference in New Issue