@@ -37,8 +37,9 @@ describe('IgxGrid - Clipboard', () => {
3737
3838 const eventData = dispatchCopyEventOnGridBody ( fix ) ;
3939 expect ( copySpy ) . toHaveBeenCalledTimes ( 1 ) ;
40- expect ( eventData )
41- . toEqual ( 'ProductName\tDownloads\tReleased\r\n** Ignite UI for JavaScript **\t254\tfalse\r\n** NetAdvantage **\t127\ttrue\r\n' ) ;
40+ expect ( eventData ) .
41+ // tslint:disable-next-line:max-line-length
42+ toEqual ( 'ProductNameHeader\tDownloads\tReleased\r\n** Ignite UI for JavaScript **\t254\tfalse\r\n** NetAdvantage **\t127\ttrue\r\n' ) ;
4243 } ) ;
4344
4445 it ( 'Copy data when there are no selected cells' , ( ) => {
@@ -61,14 +62,14 @@ describe('IgxGrid - Clipboard', () => {
6162
6263 let eventData = dispatchCopyEventOnGridBody ( fix ) ;
6364 expect ( copySpy ) . toHaveBeenCalledTimes ( 1 ) ;
64- expect ( eventData ) . toEqual ( 'ID;ProductName \r\n1;\r\n;** NetAdvantage **\r\n' ) ;
65+ expect ( eventData ) . toEqual ( 'ID;ProductNameHeader \r\n1;\r\n;** NetAdvantage **\r\n' ) ;
6566
6667 grid . clipboardOptions . separator = ',' ;
6768 fix . detectChanges ( ) ;
6869
6970 eventData = dispatchCopyEventOnGridBody ( fix ) ;
7071 expect ( copySpy ) . toHaveBeenCalledTimes ( 2 ) ;
71- expect ( eventData ) . toEqual ( 'ID,ProductName \r\n1,\r\n,** NetAdvantage **\r\n' ) ;
72+ expect ( eventData ) . toEqual ( 'ID,ProductNameHeader \r\n1,\r\n,** NetAdvantage **\r\n' ) ;
7273 } ) ;
7374
7475 it ( 'Copy data without headers' , ( ) => {
@@ -119,13 +120,13 @@ describe('IgxGrid - Clipboard', () => {
119120
120121 let eventData = dispatchCopyEventOnGridBody ( fix ) ;
121122 expect ( copySpy ) . toHaveBeenCalledTimes ( 1 ) ;
122- expect ( eventData ) . toEqual ( 'ProductName \r\nNetAdvantage\r\nIgnite UI for Angular\r\n\r\n' ) ;
123+ expect ( eventData ) . toEqual ( 'ProductNameHeader \r\nNetAdvantage\r\nIgnite UI for Angular\r\n\r\n' ) ;
123124 grid . clipboardOptions . copyFormatters = true ;
124125 fix . detectChanges ( ) ;
125126
126127 eventData = dispatchCopyEventOnGridBody ( fix ) ;
127128 expect ( copySpy ) . toHaveBeenCalledTimes ( 2 ) ;
128- expect ( eventData ) . toEqual ( 'ProductName \r\n** NetAdvantage **\r\n** Ignite UI for Angular **\r\n** null **\r\n' ) ;
129+ expect ( eventData ) . toEqual ( 'ProductNameHeader \r\n** NetAdvantage **\r\n** Ignite UI for Angular **\r\n** null **\r\n' ) ;
129130 } ) ;
130131
131132 it ( 'Cancel onGridCopy event ' , ( ) => {
@@ -137,7 +138,7 @@ describe('IgxGrid - Clipboard', () => {
137138 const eventData = dispatchCopyEventOnGridBody ( fix ) ;
138139 expect ( copySpy ) . toHaveBeenCalledTimes ( 1 ) ;
139140 expect ( copySpy ) . toHaveBeenCalledWith ( {
140- data : grid . getSelectedData ( true ) ,
141+ data : grid . getSelectedData ( true , true ) ,
141142 cancel : true
142143 } ) ;
143144 expect ( eventData ) . toEqual ( '' ) ;
0 commit comments