Skip to content

Commit 79af236

Browse files
committed
test: Note.update should returns an array
Signed-off-by: BoHong Li <raccoon@hackmd.io>
1 parent c628737 commit 79af236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/realtime/socket-events.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('realtime#socket event', function () {
4646
Note: {
4747
parseNoteTitle: (data) => (data),
4848
destroy: sinon.stub().returns(Promise.resolve(1)),
49-
update: sinon.stub().returns(Promise.resolve(1)),
49+
update: sinon.stub().returns(Promise.resolve([1])),
5050
findOne: sinon.stub().returns(Promise.resolve(note))
5151
},
5252
User: {}

0 commit comments

Comments
 (0)