Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Fixed incorrect Editor tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Feb 10, 2020
1 parent 4b1795f commit 3fd3d9e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ describe( 'Editor', () => {
} );

it( 'should load plugins built in the Editor even if the passed config is empty', () => {
Editor.builtinPlugins = [ PluginA, PluginB, PluginC ];
TestEditor.builtinPlugins = [ PluginA, PluginB, PluginC ];

const editor = new TestEditor();

Expand All @@ -698,7 +698,7 @@ describe( 'Editor', () => {
} );

it( 'should load plugins provided in the config and should ignore plugins built in the Editor', () => {
Editor.builtinPlugins = [ PluginA, PluginB, PluginC, PluginD ];
TestEditor.builtinPlugins = [ PluginA, PluginB, PluginC, PluginD ];

const editor = new TestEditor( {
plugins: [
Expand All @@ -717,7 +717,7 @@ describe( 'Editor', () => {
it( 'should load plugins built in the Editor using their names', () => {
class PrivatePlugin extends Plugin {}

Editor.builtinPlugins = [ PluginA, PluginB, PluginC, PluginD ];
TestEditor.builtinPlugins = [ PluginA, PluginB, PluginC, PluginD ];

const editor = new TestEditor( {
plugins: [
Expand All @@ -740,7 +740,7 @@ describe( 'Editor', () => {
} );

it( 'should load plugins inherited from the base Editor', () => {
Editor.builtinPlugins = [ PluginA, PluginB, PluginC, PluginD ];
TestEditor.builtinPlugins = [ PluginA, PluginB, PluginC, PluginD ];

class CustomEditor extends TestEditor {}

Expand Down Expand Up @@ -796,7 +796,7 @@ describe( 'Editor', () => {
} );

it( 'should not load plugins built in the Editor', () => {
Editor.builtinPlugins = [ PluginA, PluginD ];
TestEditor.builtinPlugins = [ PluginA, PluginD ];

const editor = new TestEditor( {
removePlugins: [ 'D' ]
Expand Down Expand Up @@ -854,7 +854,7 @@ describe( 'Editor', () => {
} );

it( 'should not duplicate plugins built in the Editor', () => {
Editor.builtinPlugins = [ PluginA, PluginB ];
TestEditor.builtinPlugins = [ PluginA, PluginB ];

const editor = new TestEditor( {
extraPlugins: [ 'B' ]
Expand Down

0 comments on commit 3fd3d9e

Please sign in to comment.