File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ module.exports = function(options) {
102102 }
103103
104104 {
105- id : 203,
105+ build : 203,
106106 head: {SHA},
107107 base: {SHA},
108108 status: "success" // either "failed", "success"
Original file line number Diff line number Diff line change @@ -225,11 +225,11 @@ var Storage = {
225225 assert . include ( [ 'success' , 'failed' ] , options . status ) ;
226226
227227 if ( options . status === 'failed' ) {
228- assert . isObject ( options . diff ) ;
228+ assert . isObject ( options . diffs ) ;
229229 }
230230
231231 var status = options . status ;
232- var diff = options . diff ;
232+ var diffs = options . diffs ;
233233 var buildFile = path . join ( getBuildsPath ( options . project ) , options . build , 'build.json' ) ;
234234
235235 return assert . eventually . isTrue ( this . hasBuild ( {
@@ -243,9 +243,9 @@ var Storage = {
243243 data . status = status ;
244244
245245 if ( status === 'success' ) {
246- delete data . diff ;
246+ delete data . diffs ;
247247 } else if ( status === 'failed' ) {
248- data . diff = diff ;
248+ data . diffs = diffs ;
249249 }
250250
251251 return fs . outputJSONAsync ( buildFile , data ) ;
Original file line number Diff line number Diff line change @@ -651,13 +651,13 @@ describe('module/storage', function() {
651651 } ) ;
652652 } ) ;
653653
654- it ( 'should not have a diff ' , function ( ) {
654+ it ( 'should not have diffs ' , function ( ) {
655655 return storage . getBuildInfo ( {
656656 project : projectId ,
657657 build : buildId
658658 } )
659659 . then ( function ( buildInfo ) {
660- assert . isUndefined ( buildInfo . diff ) ;
660+ assert . isUndefined ( buildInfo . diffs ) ;
661661 } ) ;
662662 } ) ;
663663 } ) ;
@@ -670,7 +670,7 @@ describe('module/storage', function() {
670670 project : projectId ,
671671 build : buildId ,
672672 status : 'failed' ,
673- diff : {
673+ diffs : {
674674 Chrome : [ 'image1.png,' , 'image2.png' ] ,
675675 Firefox : [ 'image1.png' ]
676676 }
@@ -689,13 +689,13 @@ describe('module/storage', function() {
689689 } ) ;
690690 } ) ;
691691
692- it ( 'should have a diff ' , function ( ) {
692+ it ( 'should have diffs ' , function ( ) {
693693 return storage . getBuildInfo ( {
694694 project : projectId ,
695695 build : buildId
696696 } )
697697 . then ( function ( buildInfo ) {
698- assert . deepEqual ( buildInfo . diff , newBuildInfo . diff ) ;
698+ assert . deepEqual ( buildInfo . diffs , newBuildInfo . diffs ) ;
699699 } ) ;
700700 } ) ;
701701 } ) ;
You can’t perform that action at this time.
0 commit comments