Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should revert if not conforming', async () => {
await policy.setVal(false);
assertRevert(policies.policyIsValid(
testDataHash,
accounts[0],
testDataUri,
policy.address
));
});
});
it('should revert if it doesnt follow existing policies', async () => {
await records.addPolicyToRecord(testDataHash, policy.address);
await policy.setVal(false);
assertRevert(policies.followsExistingPolicies(
testDataHash,
accounts[0],
testDataUri
));
});
});