Skip to content

Commit a25ecf3

Browse files
committed
Fix test error
1 parent 3295358 commit a25ecf3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

evernote/notestore_sdk_test.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ func TestUpdateNoteSDK(t *testing.T) {
152152
expectedTitle := "Expected Title"
153153
ns.evernoteNS = &mockAPI{updateNote: func(api string, n *types.Note) (*types.Note, error) { expectedNote = n; return nil, nil }}
154154
err := ns.UpdateNote(&clinote.Note{
155-
Title: expectedTitle,
156-
GUID: expectedGUID,
155+
Title: expectedTitle,
156+
GUID: expectedGUID,
157+
Notebook: new(clinote.Notebook),
157158
})
158159
assert.NoError(err, "No error should be returned")
159160
assert.Equal(expectedGUID, string(expectedNote.GetGUID()), "Wrong GUID")
@@ -168,9 +169,10 @@ func TestUpdateNoteSDK(t *testing.T) {
168169
expectedContent := "This is note content"
169170
ns.evernoteNS = &mockAPI{updateNote: func(api string, n *types.Note) (*types.Note, error) { expectedNote = n; return nil, nil }}
170171
err := ns.UpdateNote(&clinote.Note{
171-
Title: expectedTitle,
172-
GUID: expectedGUID,
173-
Body: expectedContent,
172+
Title: expectedTitle,
173+
GUID: expectedGUID,
174+
Body: expectedContent,
175+
Notebook: new(clinote.Notebook),
174176
})
175177
assert.NoError(err, "No error should be returned")
176178
assert.Equal(expectedGUID, string(expectedNote.GetGUID()), "Wrong GUID")

0 commit comments

Comments
 (0)