-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The same validator is used for creating and updating a location. It has been modified to support a partial update. Additional improvements: * 2 tests have been added to ensure that the correct errors are returned by the API when trying to create a location with no attributes (i.e. it should indicate which are the required fields). * A small error has been fixed in the invalid properties creation test. The test attempted to produce two different errors on the `street` property (blank & required), when it should have been the `street` and the `city` properties. * RAML traits in `server/api/index.raml` have been split into multiple files in the `server/api/raml/traits` directory. A similar structure has been put in place to define RAML types. * Test fixtures in `server/spec/fixtures` have been documented. * A bug has been fixed in `server/utils/bookshelf-returning.js`. It was attempting to to call Knex's `returning` method with the wrong arguments, using an array's items as the parameters rather than the array itself as a single parameter. Story: TG-43
- Loading branch information
1 parent
9a2e019
commit df1832a
Showing
26 changed files
with
1,575 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.