Moves out relation responsibilities from Mapper class by stalniy · Pull Request #405 · js-data/js-data

Yes deleted this test because the only thing which we need to test here is that Schema#validate is called and the rest of schema related checks should be done in schema tests. Otherwise you need to duplicate not only disallowed props but all kind of checks (required, minlength, min/max, propsPatterns, etc). All that tests were fixed in #417.

Responsibility of this tests is just to test creation of resources, not their validation. Plus there is a small set of tests which checks what happens if record is invalid, you can find them by searching describe('when invalid object is passed'

So, does it make sense now?