/** * @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/normalizers/googledocsnormalizer'; // `execute()` of the google docs normalizer is tested with autogenerated normalization tests. describe( 'GoogleDocsNormalizer', () => { const normalizer = new GoogleDocsNormalizer(); describe( 'isActive()', () => { it( 'should return true from google docs content', () => { expect( normalizer.isActive( '

' ) ).to.be.true; } ); it( 'should return false for microsoft word content', () => { expect( normalizer.isActive( '

Foo bar

' ) ).to.be.false; } ); it( 'should return false for content form other sources', () => { expect( normalizer.isActive( '

foo

' ) ).to.be.false; } ); } ); } );