test: Note.update should returns an array

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2019-07-30 18:32:00 +08:00
parent c628737411
commit 79af236405
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ describe('realtime#socket event', function () {
Note: { Note: {
parseNoteTitle: (data) => (data), parseNoteTitle: (data) => (data),
destroy: sinon.stub().returns(Promise.resolve(1)), destroy: sinon.stub().returns(Promise.resolve(1)),
update: sinon.stub().returns(Promise.resolve(1)), update: sinon.stub().returns(Promise.resolve([1])),
findOne: sinon.stub().returns(Promise.resolve(note)) findOne: sinon.stub().returns(Promise.resolve(note))
}, },
User: {} User: {}