mirror of https://github.com/status-im/codimd.git
test: Note.update should returns an array
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
c628737411
commit
79af236405
|
@ -46,7 +46,7 @@ describe('realtime#socket event', function () {
|
|||
Note: {
|
||||
parseNoteTitle: (data) => (data),
|
||||
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))
|
||||
},
|
||||
User: {}
|
||||
|
|
Loading…
Reference in New Issue