ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Unit Test failing

Open kevin-sage opened this issue 11 years ago • 3 comments

I got the latest on the code and when I run grunt, I get the following errors:

PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation count, with label FAILED Expected 'total rows: ' to equal 5. PhantomJS 1.9.8 (Windows 7): Executed 119 of 428 (1 FAILED) (0 secs / 2.53 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation count, without label FAILED Expected '' to equal 5. PhantomJS 1.9.8 (Windows 7): Executed 120 of 428 (2 FAILED) (0 secs / 2.535 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation sum, with label FAILED Expected 'total: ' to equal 15. PhantomJS 1.9.8 (Windows 7): Executed 121 of 428 (3 FAILED) (0 secs / 2.54 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation sum, without label FAILED Expected '' to equal 15. PhantomJS 1.9.8 (Windows 7): Executed 122 of 428 (4 FAILED) (0 secs / 2.545 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation avg, with label FAILED Expected 'avg: ' to equal 3. PhantomJS 1.9.8 (Windows 7): Executed 123 of 428 (5 FAILED) (0 secs / 2.551 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation avg, without label FAILED Expected '' to equal 3. PhantomJS 1.9.8 (Windows 7): Executed 124 of 428 (6 FAILED) (0 secs / 2.556 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation min, with label FAILED Expected 'min: ' to equal 1. PhantomJS 1.9.8 (Windows 7): Executed 125 of 428 (7 FAILED) (0 secs / 2.56 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation min, without label FAILED Expected '' to equal 1. PhantomJS 1.9.8 (Windows 7): Executed 126 of 428 (8 FAILED) (0 secs / 2.565 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation max, with label FAILED Expected 'max: ' to equal 5. PhantomJS 1.9.8 (Windows 7): Executed 127 of 428 (9 FAILED) (0 secs / 2.571 secs) PhantomJS 1.9.8 (Windows 7) GridColumn factory aggregation max, without label FAILED Expected '' to equal 5. PhantomJS 1.9.8 (Windows 7): Executed 128 of 428 (10 FAILED) (0 secs / 2.576 secs)

It seems like GridColumn.prototype.getAggregationValue changed and is now return labels instead of counts.

kevin-sage avatar Dec 06 '14 00:12 kevin-sage

I think I saw on gitter that @swalters broke that, then fixed it again. Is it still broken if you get the latest?

PaulL1 avatar Dec 06 '14 05:12 PaulL1

Ok, I am rather new to git, so I thought I had got the code up to date, however, let me go back through and make sure I do have the latest.

kevin-sage avatar Dec 06 '14 15:12 kevin-sage

Yep, I missed a couple of steps with git, I got my branch updated and was able to successfully build and run the unit tests successfully, thanks Paul.

kevin-sage avatar Dec 06 '14 15:12 kevin-sage