Migrate to new cloud code interfaces
removes job status object, moves messasge method on req object Adds 3.0.0 migration guide Fixes nits about 3.0.0 documentation Adds update guide to README
This commit is contained in:
@@ -1656,11 +1656,10 @@ describe('schemas', () => {
|
||||
|
||||
it('unset field in beforeSave should not stop object creation', (done) => {
|
||||
const hook = {
|
||||
method: function(req, res) {
|
||||
method: function(req) {
|
||||
if (req.object.get('undesiredField')) {
|
||||
req.object.unset('undesiredField');
|
||||
}
|
||||
return res.success();
|
||||
}
|
||||
};
|
||||
spyOn(hook, 'method').and.callThrough();
|
||||
|
||||
Reference in New Issue
Block a user