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

Commit

Permalink
Tests: Fixed few more describe()s. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Jun 23, 2017
1 parent f1fa1b1 commit d896901
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/model/document/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe( 'Document', () => {
} );
} );

describe( 'createRoot', () => {
describe( 'createRoot()', () => {
it( 'should create a new RootElement with default element and root names, add it to roots map and return it', () => {
const root = doc.createRoot();

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

describe( 'getRoot', () => {
describe( 'getRoot()', () => {
it( 'should return a RootElement previously created with given name', () => {
const newRoot = doc.createRoot();
const getRoot = doc.getRoot();
Expand All @@ -95,7 +95,7 @@ describe( 'Document', () => {
} );
} );

describe( 'hasRoot', () => {
describe( 'hasRoot()', () => {
it( 'should return true when Document has RootElement with given name', () => {
doc.createRoot();

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

describe( 'applyOperation', () => {
describe( 'applyOperation()', () => {
it( 'should increase document version, execute operation and fire event with proper data', () => {
const changeCallback = sinon.spy();
const type = 't';
Expand Down Expand Up @@ -151,7 +151,7 @@ describe( 'Document', () => {
} );
} );

describe( 'batch', () => {
describe( 'batch()', () => {
it( 'should create a new batch with the document property', () => {
const batch = doc.batch();

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

describe( 'enqueue', () => {
describe( 'enqueue()', () => {
it( 'should be executed immediately and fire changesDone event', () => {
const order = [];

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

describe( 'getNearestSelectionRange', () => {
describe( 'getNearestSelectionRange()', () => {
let selection;

beforeEach( () => {
Expand Down Expand Up @@ -430,7 +430,7 @@ describe( 'Document', () => {
}
} );

describe( '_getDefaultRoot', () => {
describe( '_getDefaultRoot()', () => {
it( 'should return graveyard root if there are no other roots in the document', () => {
expect( doc._getDefaultRoot() ).to.equal( doc.graveyard );
} );
Expand Down

0 comments on commit d896901

Please sign in to comment.