File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ window.Build = (function () {
90
90
success : ( ( log ) => {
91
91
const $buildContainer = $ ( '.js-build-output' ) ;
92
92
93
+ gl . utils . setCiStatusFavicon ( `${ this . pageUrl } /status.json` ) ;
94
+
93
95
if ( log . state ) {
94
96
this . state = log . state ;
95
97
}
Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ describe('Build', () => {
98
98
99
99
jasmine . clock ( ) . tick ( 4001 ) ;
100
100
101
- expect ( $ . ajax . calls . count ( ) ) . toBe ( 2 ) ;
101
+ expect ( $ . ajax . calls . count ( ) ) . toBe ( 3 ) ;
102
102
103
- args = $ . ajax . calls . argsFor ( 1 ) [ 0 ] ;
103
+ args = $ . ajax . calls . argsFor ( 2 ) [ 0 ] ;
104
104
expect ( args . url ) . toBe ( `${ BUILD_URL } /trace.json` ) ;
105
105
expect ( args . dataType ) . toBe ( 'json' ) ;
106
106
expect ( args . data . state ) . toBe ( 'newstate' ) ;
@@ -133,7 +133,7 @@ describe('Build', () => {
133
133
expect ( $ ( '#build-trace .js-build-output' ) . text ( ) ) . toMatch ( / U p d a t e / ) ;
134
134
135
135
jasmine . clock ( ) . tick ( 4001 ) ;
136
- args = $ . ajax . calls . argsFor ( 1 ) [ 0 ] ;
136
+ args = $ . ajax . calls . argsFor ( 2 ) [ 0 ] ;
137
137
args . success . call ( $ , {
138
138
html : '<span>Different</span>' ,
139
139
status : 'running' ,
You can’t perform that action at this time.
0 commit comments