@@ -62,8 +62,8 @@ test('organization', t => {
6262
6363 return client . organization ( { organization } )
6464 . then ( orgData => {
65- t . same ( orgData , sampleOrganization ) ;
66- t . ok ( mozaik . logger . info . calledOnce ) ;
65+ t . deepEqual ( orgData , sampleOrganization ) ;
66+ t . truthy ( mozaik . logger . info . calledOnce ) ;
6767 t . is ( mozaik . logger . info . getCall ( 0 ) . args [ 0 ] , `[github] calling ${ githubBaseUrl } /orgs/${ organization } ` ) ;
6868 } )
6969 ;
@@ -82,8 +82,8 @@ test('user', t => {
8282
8383 return client . user ( { user } )
8484 . then ( userData => {
85- t . same ( userData , sampleUser ) ;
86- t . ok ( mozaik . logger . info . calledOnce ) ;
85+ t . deepEqual ( userData , sampleUser ) ;
86+ t . truthy ( mozaik . logger . info . calledOnce ) ;
8787 t . is ( mozaik . logger . info . getCall ( 0 ) . args [ 0 ] , `[github] calling ${ githubBaseUrl } /users/${ user } ` ) ;
8888 } )
8989 ;
@@ -102,8 +102,8 @@ test('pullRequests', t => {
102102
103103 return client . pullRequests ( { repository } )
104104 . then ( pullRequestsData => {
105- t . same ( pullRequestsData , samplePullRequests ) ;
106- t . ok ( mozaik . logger . info . calledOnce ) ;
105+ t . deepEqual ( pullRequestsData , samplePullRequests ) ;
106+ t . truthy ( mozaik . logger . info . calledOnce ) ;
107107 t . is ( mozaik . logger . info . getCall ( 0 ) . args [ 0 ] , `[github] calling ${ githubBaseUrl } /repos/${ repository } /pulls` ) ;
108108 } )
109109 ;
@@ -123,8 +123,8 @@ test('branch', t => {
123123
124124 return client . branch ( { repository, branch } )
125125 . then ( branchData => {
126- t . same ( branchData , sampleBranch ) ;
127- t . ok ( mozaik . logger . info . calledOnce ) ;
126+ t . deepEqual ( branchData , sampleBranch ) ;
127+ t . truthy ( mozaik . logger . info . calledOnce ) ;
128128 t . is ( mozaik . logger . info . getCall ( 0 ) . args [ 0 ] , `[github] calling ${ githubBaseUrl } /repos/${ repository } /branches/${ branch } ` ) ;
129129 } )
130130 ;
@@ -143,8 +143,8 @@ test('repositoryContributorsStats', t => {
143143
144144 return client . repositoryContributorsStats ( { repository } )
145145 . then ( contribsData => {
146- t . same ( contribsData , sampleContribs ) ;
147- t . ok ( mozaik . logger . info . calledOnce ) ;
146+ t . deepEqual ( contribsData , sampleContribs ) ;
147+ t . truthy ( mozaik . logger . info . calledOnce ) ;
148148 t . is ( mozaik . logger . info . getCall ( 0 ) . args [ 0 ] , `[github] calling ${ githubBaseUrl } /repos/${ repository } /stats/contributors` ) ;
149149 } )
150150 ;
@@ -163,8 +163,8 @@ test('issues', t => {
163163
164164 return client . issues ( { repository } )
165165 . then ( issuesData => {
166- t . same ( issuesData , sampleIssues ) ;
167- t . ok ( mozaik . logger . info . calledOnce ) ;
166+ t . deepEqual ( issuesData , sampleIssues ) ;
167+ t . truthy ( mozaik . logger . info . calledOnce ) ;
168168 t . is ( mozaik . logger . info . getCall ( 0 ) . args [ 0 ] , `[github] calling ${ githubBaseUrl } /repos/${ repository } /issues` ) ;
169169 } )
170170 ;
@@ -183,8 +183,8 @@ test('status', t => {
183183
184184 return client . status ( )
185185 . then ( statusData => {
186- t . same ( statusData , sampleStatus ) ;
187- t . ok ( mozaik . logger . info . calledOnce ) ;
186+ t . deepEqual ( statusData , sampleStatus ) ;
187+ t . truthy ( mozaik . logger . info . calledOnce ) ;
188188 t . is ( mozaik . logger . info . getCall ( 0 ) . args [ 0 ] , `[github] calling ${ statusUrl } ` ) ;
189189 } )
190190 ;
0 commit comments