/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import MSWordNormalizer from '../../src/normalizers/mswordnormalizer'; // `execute()` of the msword normalizer is tested with autogenerated normalization tests. describe( 'MSWordNormalizer', () => { const normalizer = new MSWordNormalizer(); describe( 'isActive()', () => { it( 'should return true for microsoft word content', () => { expect( normalizer.isActive( '
Foo bar
' ) ).to.be.true; } ); it( 'should return true for microsoft word content - safari', () => { expect( normalizer.isActive( '' ) ).to.be.true; } ); it( 'should return false for google docs content', () => { expect( normalizer.isActive( '' ) ).to.be.false; } ); it( 'should return false for content fromother sources', () => { expect( normalizer.isActive( 'foo
' ) ).to.be.false; } ); } ); } );