File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ describe('Message', () => {
15
15
testContext . connection = new NylasConnection ( '123' , { clientId : 'foo' } ) ;
16
16
testContext . message = new Message ( testContext . connection ) ;
17
17
testContext . message . id = '4333' ;
18
+ testContext . message . subject = 'foo' ;
19
+ testContext . message . body = 'bar' ;
18
20
testContext . message . starred = true ;
19
21
testContext . message . unread = false ;
20
22
testContext . message . to = [ { "email" : "foo" , "name" : "bar" } ] ;
@@ -75,6 +77,8 @@ describe('Message', () => {
75
77
test ( 'should resolve with the message object' , done => {
76
78
testContext . message . save ( ) . then ( message => {
77
79
expect ( message . id ) . toBe ( '4333' ) ;
80
+ expect ( message . body ) . toBe ( 'bar' ) ;
81
+ expect ( message . subject ) . toBe ( 'foo' ) ;
78
82
let toParticipant = message . to [ 0 ] ;
79
83
expect ( toParticipant . toJSON ( ) ) . toEqual (
80
84
{ 'email' : 'foo' , 'name' : 'bar' } ) ;
You can’t perform that action at this time.
0 commit comments