Skip to content

Commit

Permalink
refactor: add missing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghislain Beaulac authored and Ghislain Beaulac committed Nov 19, 2020
1 parent b0e0081 commit d1637fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ describe('cellExternalCopyManagerExtension', () => {

it('should expect a sanitized formatted and empty output after calling "dataItemColumnValueExtractor" callback', () => {
gridOptionsMock.exportOptions = { sanitizeDataExport: true };
const myBoldFormatter: Formatter = (_row, _cell, value) => value ? { text: `<b>${value}</b>` } : '';
// @ts-expect-error
const myBoldFormatter: Formatter = (_row, _cell, value) => value ? { text: `<b>${value}</b>` } : null;
jest.spyOn(SharedService.prototype, 'gridOptions', 'get').mockReturnValue(gridOptionsMock);
extension.register();

Expand Down

0 comments on commit d1637fe

Please sign in to comment.