Unit tests for test functions toBe, toHaveProperty (#1392)
* Added unit tests for the post-request tests * Added 2 top level functions to avoid duplication of code * Simplified tests for toBe and error handling * Added a test for asserting string values with toBe * Added a test for negative assertion with toBe * Added tests for toHaveProperty * Imported PASS, FAIL and ERROR constants * Use getTestResult and getErrors to avoid duplication of code * Removed .vscode/settings.json * Minor cleanup to postwomanTesting.spec.js * Revert change of runTestScriptWithVariables back to default export Co-authored-by: Liyas Thomas <liyascthomas@gmail.com> Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const PASS = "PASS"
|
||||
const FAIL = "FAIL"
|
||||
const ERROR = "ERROR"
|
||||
export const PASS = "PASS"
|
||||
export const FAIL = "FAIL"
|
||||
export const ERROR = "ERROR"
|
||||
|
||||
const styles = {
|
||||
[PASS]: { icon: "check", class: "success-response" },
|
||||
|
||||
Reference in New Issue
Block a user