Merge pull request #958 from strongloop/Add_test_desc
Add test's description
This commit is contained in:
commit
2e11dbfe35
|
@ -1093,6 +1093,9 @@ module.exports = function(dataSource, should, connectorCapabilities) {
|
|||
it('triggers `after save` hook on create', function(done) {
|
||||
TestModel.observe('after save', ctxRecorder.recordAndNext());
|
||||
|
||||
// The rationale behind passing { persisted: true } is to bypass the check
|
||||
// made by DAO to determine whether the instance should be saved via
|
||||
// PersistedModel.create and force it to call connector.save()
|
||||
var instance = new TestModel(
|
||||
{ id: 'new-id', name: 'created' },
|
||||
{ persisted: true });
|
||||
|
|
Loading…
Reference in New Issue