/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import MSWordNormalizer from '../../src/normalizer/mswordnormalizer'; // `exec()` of the msword normalizer is tested with autogenerated normalization tests. describe( 'PasteFromOffice/normalizer/mswornormalizer', () => { const normalizer = new MSWordNormalizer(); describe( 'isActive()', () => { describe( 'correct data set', () => { [ '

Foo bar

', '' ].forEach( ( htmlString, index ) => { it( `should be active for: #${ index } data set`, () => { expect( normalizer.isActive( htmlString ) ).to.be.true; } ); } ); } ); describe( 'wrong data set', () => { [ '

foo

', '

' ].forEach( ( htmlString, index ) => { it( `should be inactive to for: #${ index } data set`, () => { expect( normalizer.isActive( htmlString ) ).to.be.false; } ); } ); } ); } ); } );