/** * @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 GoogleDocsNormalizer from '../../src/normalizer/googledocsnormalizer'; // exec() of the google docs normalizer is tested with autogenerated normalization tests. describe( 'GoogleDocsNormalizer', () => { const normalizer = new GoogleDocsNormalizer(); describe( 'isActive()', () => { describe( 'correct data set', () => { it( 'should be active for google docs data', () => { const gDocs = '
'; expect( normalizer.isActive( gDocs ) ).to.be.true; } ); } ); describe( 'wrong data set', () => { [ 'foo
', 'Foo bar
', '' ].forEach( ( htmlString, index ) => { it( `should be inactive for: #${ index } data set`, () => { expect( normalizer.isActive( htmlString ) ).to.be.false; } ); } ); } ); } ); } );