Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
specify('should support Validation type', function() {
const validationR = monet.Validation.Success(1);
const validationL = monet.Validation.Fail(2);
assert.strictEqual(RA.cata(null, R.identity, validationR), 1);
assert.strictEqual(RA.cata(R.identity, null, validationL), 2);
});
});
specify('should support Validation type', function() {
const validationR = monet.Validation.Success(1);
const validationL = monet.Validation.Fail(2);
assert.strictEqual(RA.cata(null, R.identity, validationR), 1);
assert.strictEqual(RA.cata(R.identity, null, validationL), 2);
});
});