api-client/helpers/__tests__
Karel De Smet a2a03c6b52
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>
2020-12-19 07:45:36 +05:30
..
editorutils.spec.js Add test spec for helpers/editorutils.js 2020-08-19 00:43:47 -04:00
fb.spec.js fix: turn off permission of GitHub OAuth app fixed #1377 2020-12-10 16:12:38 +05:30
jsonParse.spec.js Added test spec for helpers/jsonParse.js 2020-08-19 01:08:02 -04:00
network.spec.js chores: Lint + dependency update 2020-09-27 23:34:15 +05:30
platformutils.spec.js Added test spec for helpers/platformutils.js 2020-08-19 01:37:38 -04:00
postwomanTesting.spec.js Unit tests for test functions toBe, toHaveProperty (#1392) 2020-12-19 07:45:36 +05:30