/**
 * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
 */

import { Code } from '../src/code.js';
import { CodeEditing } from '../src/code/codeediting.js';
import { CodeUI } from '../src/code/codeui.js';

describe( 'Code', () => {
	it( 'should require CodeEditing and CodeUI', () => {
		expect( Code.requires ).to.deep.equal( [ CodeEditing, CodeUI ] );
	} );

	it( 'should be named', () => {
		expect( Code.pluginName ).to.equal( 'Code' );
	} );

	it( 'should have `isOfficialPlugin` static flag set to `true`', () => {
		expect( Code.isOfficialPlugin ).to.be.true;
	} );

	it( 'should have `isPremiumPlugin` static flag set to `false`', () => {
		expect( Code.isPremiumPlugin ).to.be.false;
	} );
} );
