Catch notification / Changed: statistic button will not be removed
Change-Id: I9305a8b387957d7ad6c51149aca7321a8c65ace2
diff --git a/dev/js/spec/statSpec.js b/dev/js/spec/statSpec.js
index 2edc972..aefe187 100644
--- a/dev/js/spec/statSpec.js
+++ b/dev/js/spec/statSpec.js
@@ -76,8 +76,7 @@
return cb(preDefinedStat);
};
-
-
+
describe('KorAP.CorpusStat', function(){
var vc = vcClass.create([
@@ -92,13 +91,7 @@
var stat = statClass.create(preDefinedStat);
var descL = stat.element();
- it('statButton should only be added if doc is specified', function(){
- expect(vcEl.children[1].id).not.toBe(null);
- vc2 = vcClass.create().fromJson();
- expect(vc2.element().children[1]).toBeUndefined();
- });
-
-
+
it('should be initiable', function(){
expect(stat._visibleStat).toEqual(false);
expect( function() { statClass.create() }).toThrow(new Error("Missing parameter"));