a Sails application to demonstrate the need for a way to create test fixtures in a sensible manner.
npm install
npm install mocha -g
mocha
- Make tests pass!
- The problem is that the
unique: true
property of the models'name
attributes makes Waterline throw validation errors when we create users and their associated pets, or vice-versa. - How do we avoid these errors and create the fixtures regardless of whether an associated record already exists?
- The problem is that the