|
|
@@ -13,6 +13,7 @@ import Element from '../../../src/model/element';
|
|
|
import AttributeDelta from '../../../src/model/delta/attributedelta';
|
|
|
import { RootAttributeDelta } from '../../../src/model/delta/attributedelta';
|
|
|
import AttributeOperation from '../../../src/model/operation/attributeoperation';
|
|
|
+import { jsonParseStringify } from '../../../tests/model/_utils/utils';
|
|
|
|
|
|
describe( 'Batch', () => {
|
|
|
let batch, doc, root;
|
|
|
@@ -507,6 +508,12 @@ describe( 'AttributeDelta', () => {
|
|
|
it( 'should provide proper className', () => {
|
|
|
expect( AttributeDelta.className ).to.equal( 'engine.model.delta.AttributeDelta' );
|
|
|
} );
|
|
|
+
|
|
|
+ it( 'should not have _range property when converted to JSON', () => {
|
|
|
+ const json = jsonParseStringify( delta );
|
|
|
+
|
|
|
+ expect( json ).not.to.have.property( '_range' );
|
|
|
+ } );
|
|
|
} );
|
|
|
|
|
|
describe( 'RootAttributeDelta', () => {
|