test(Viewer): remove test isolation

This commit is contained in:
pedesen 2016-02-22 11:47:25 +01:00
parent d09ec1c19d
commit 7f5aefbc02
1 changed files with 16 additions and 16 deletions

View File

@ -323,10 +323,10 @@ describe('Viewer', function() {
done(); done();
}); });
}); });
}); });
it('should export svg', function(done) { it('should export svg', function(done) {
// given // given
@ -626,10 +626,10 @@ describe('Viewer', function() {
}); });
describe.only('#off', function() { describe('#off', function() {
var xml = require('../fixtures/bpmn/simple.bpmn'); var xml = require('../fixtures/bpmn/simple.bpmn');
it('should remove listener permanently', function(done) { it('should remove listener permanently', function(done) {
// given // given
@ -638,12 +638,12 @@ describe('Viewer', function() {
var handler = function() { var handler = function() {
return 'bar'; return 'bar';
}; };
viewer.on('foo', 1000, handler); viewer.on('foo', 1000, handler);
// when // when
viewer.off('foo'); viewer.off('foo');
// then // then
viewer.importXML(xml, function(err) { viewer.importXML(xml, function(err) {
var eventBus = viewer.get('eventBus'); var eventBus = viewer.get('eventBus');
@ -656,8 +656,8 @@ describe('Viewer', function() {
}); });
}); });
it('should remove listener on existing diagram instance', function(done) { it('should remove listener on existing diagram instance', function(done) {
// given // given
@ -666,16 +666,16 @@ describe('Viewer', function() {
var handler = function() { var handler = function() {
return 'bar'; return 'bar';
}; };
viewer.on('foo', 1000, handler); viewer.on('foo', 1000, handler);
// when // when
viewer.importXML(xml, function(err) { viewer.importXML(xml, function(err) {
var eventBus = viewer.get('eventBus'); var eventBus = viewer.get('eventBus');
// when // when
viewer.off('foo', handler); viewer.off('foo', handler);
var result = eventBus.fire('foo'); var result = eventBus.fire('foo');
expect(result).not.to.exist; expect(result).not.to.exist;
@ -686,8 +686,8 @@ describe('Viewer', function() {
}); });
}); });
describe('#destroy', function() { describe('#destroy', function() {
it('should remove traces in document tree', function() { it('should remove traces in document tree', function() {