{"_id":"55bf69b703d092210084c143","category":{"_id":"55c345418713ec1900d1732d","project":"55a92d71cf45e1390093f321","version":"55a92d71cf45e1390093f324","__v":2,"pages":["55c345838713ec1900d17330","55c34683b6e05719008a046e"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-06T11:30:09.092Z","from_sync":false,"order":2,"slug":"jasmine-advanced","title":"Jasmine Advanced"},"parentDoc":null,"project":"55a92d71cf45e1390093f321","__v":1,"version":{"_id":"55a92d71cf45e1390093f324","__v":12,"project":"55a92d71cf45e1390093f321","createdAt":"2015-07-17T16:29:37.746Z","releaseDate":"2015-07-17T16:29:37.746Z","categories":["55a92d72cf45e1390093f325","55b9aea1baf4cd2300bc56e7","55bf16593179dd1900a19521","55bf16b93179dd1900a19525","55bf16c53bbd4b17002c2369","55bf234703d092210084c07b","55bf2859ad601c2b00762c4c","55bf3217ad601c2b00762c69","55bf321b03d092210084c09d","55bf5ef78b83a5370044504e","55c345418713ec1900d1732d","55c3473057f7f32d0016ec0a"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"user":"55a4738a68c7e20d0036d4de","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-03T13:16:39.964Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"Put this mocks into `tests/jasmine/server/unit/`. Prefix the file with `z_`. This will load the mock after the default stubs. Also the -stub postfix is important. E.g. `z_collection-hooks-stub.js`.\n\n* matb33:collection-hooks: https://gist.github.com/Sanjo/664bf9e9090bb58b7a00","excerpt":"A collection of mocks for packages","slug":"jasmine-package-mocks","type":"basic","title":"Package mocks"}

Package mocks

A collection of mocks for packages

Put this mocks into `tests/jasmine/server/unit/`. Prefix the file with `z_`. This will load the mock after the default stubs. Also the -stub postfix is important. E.g. `z_collection-hooks-stub.js`. * matb33:collection-hooks: https://gist.github.com/Sanjo/664bf9e9090bb58b7a00