Split Assert library into its own file
Currently the Assert library is bundled with the Validate library. I do not believe this is a good collaboration because the Validate library is more typically used in Applications while the Assert library is more typically used in Testing.
-
Create new Assert.js -
Extract Assert code from Validate.js -
Create AssertionError.js -
Extract AssertionError code from Assert.js -
Require AssertionError in Assert -
Require AssertionError in Validate -
Clone Validate.test.js into Assert.test.js -
Adjust Assertion tests to use [method].catch
ortry{ } catch(e){ }
calls -
Adjust test files to require('../lib/Assert')
instead ofValidate
-
Add Assert
to test definitions attest/index.js
-
Ensure tests pass -
Submit merge request