@@ -27,7 +27,7 @@ describe('ui.grid.exporter uiGridExporterService', function () {
27
27
grid = gridClassFactory . createGrid ( { } ) ;
28
28
grid . options . columnDefs = [
29
29
{ field : 'col1' , name : 'col1' , displayName : 'Col1' , width : 50 , pinnedLeft : true } ,
30
- { field : 'col2' , name : 'col2' , displayName : 'Col2' , width : '*' , type : 'number' } ,
30
+ { field : 'col2' , name : 'col2' , displayName : 'Col2' , width : '*' , type : 'number' , cellFilter : 'uppercase' } ,
31
31
{ field : 'col3' , name : 'col3' , displayName : 'Col3' , width : 100 } ,
32
32
{ field : 'col4' , name : 'col4' , displayName : 'Col4' , width : 200 }
33
33
] ;
@@ -265,6 +265,14 @@ describe('ui.grid.exporter uiGridExporterService', function () {
265
265
] ) ;
266
266
} ) ;
267
267
268
+ it ( 'gets the rows display values' , function ( ) {
269
+ expect ( uiGridExporterService . getData ( grid , uiGridExporterConstants . ALL , uiGridExporterConstants . ALL , true ) ) . toEqual ( [
270
+ [ { value : 'a_0' } , { value : 'B_0' } , { value : 'c_0' } , { value : 'd_0' } ] ,
271
+ [ { value : 'a_1' } , { value : 'B_1' } , { value : 'c_1' } , { value : 'd_1' } ] ,
272
+ [ { value : 'a_2' } , { value : 'B_2' } , { value : 'c_2' } , { value : 'd_2' } ]
273
+ ] ) ;
274
+ } ) ;
275
+
268
276
it ( 'maps data using objectCallback' , function ( ) {
269
277
grid . options . exporterFieldCallback = function ( grid , row , col , value ) {
270
278
if ( col . name === 'col2' ) {
0 commit comments