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

Commit

Permalink
Improved tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Feb 13, 2020
1 parent 9607309 commit c089dbc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/utils/areconnectedthroughproperties.js
Expand Up @@ -250,6 +250,11 @@ describe( 'areConnectedThroughProperties()', () => {
} );

describe( 'integration tests', () => {
afterEach( () => {
delete Editor.builtinPlugins;
delete Editor.defaultConfig;
} );

it( 'should return false for two different editors', () => {
const editor1 = new Editor( {} );
const editor2 = new Editor( {} );
Expand All @@ -266,8 +271,6 @@ describe( 'areConnectedThroughProperties()', () => {
const editor2 = new Editor();

expect( areConnectedThroughProperties( editor1, editor2 ) ).to.be.false;

delete Editor.builtinPlugins;
} );

it( 'should return false for two different editors inheriting default configuration', () => {
Expand All @@ -281,8 +284,6 @@ describe( 'areConnectedThroughProperties()', () => {
const editor2 = new Editor();

expect( areConnectedThroughProperties( editor1, editor2 ) ).to.be.false;

delete Editor.defaultConfig;
} );

it( 'should return false for two different editors sharing builtin plugins', () => {
Expand All @@ -294,8 +295,6 @@ describe( 'areConnectedThroughProperties()', () => {
const editor2 = new Editor();

expect( areConnectedThroughProperties( editor1, editor2 ) ).to.be.false;

delete Editor.builtinPlugins;
} );
} );
} );

0 comments on commit c089dbc

Please sign in to comment.