mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-02-04 16:18:32 -06:00
Use JSON.stringify instead of toString
This commit is contained in:
@@ -187,7 +187,7 @@ class NetworkService {
|
||||
}
|
||||
|
||||
let match;
|
||||
result = result.toString();
|
||||
result = typeof result === "object" ? JSON.stringify(result) : result.toString();
|
||||
if (matchMethod === "include") match = result.includes(expectedValue);
|
||||
else if (matchMethod === "regex") match = new RegExp(expectedValue).test(result);
|
||||
else match = result === expectedValue;
|
||||
|
||||
Reference in New Issue
Block a user