Fixed first element deletion bug in doc
diff --git a/public/js/spec/vcSpec.js b/public/js/spec/vcSpec.js
index 4223e46..c532d32 100644
--- a/public/js/spec/vcSpec.js
+++ b/public/js/spec/vcSpec.js
@@ -461,12 +461,14 @@
describe('KorAP.UnspecifiedDoc', function () {
it('should be initializable', function () {
- var docElement = KorAP.UnspecifiedDoc.create().element();
+ var doc = KorAP.UnspecifiedDoc.create();
+ var docElement = doc.element();
expect(docElement.getAttribute('class')).toEqual('unspecified');
expect(docElement.firstChild.firstChild.data).toEqual('⋯');
expect(docElement.lastChild.getAttribute('class')).toEqual('operators');
+ expect(doc.toString()).toEqual('⋯');
- // Not removable
+ // Only removable
expect(docElement.lastChild.children.length).toEqual(0);
});
@@ -872,7 +874,6 @@
expect(vc.toString()).toEqual(
'pubDate since 2014-05-12 & pubDate until 2014-12-05'
);
-
});
it('should be modifiable by deletion in nested docGroups (resolve group case)', function () {