test(zoomScroll): add basic test

This commit is contained in:
Nico Rehwaldt 2014-06-26 10:04:11 +02:00
parent 27b39a9d44
commit fcb35c366d
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
'use strict';
var Matchers = require('../../../Matchers'),
TestHelper = require('../../../TestHelper');
/* global bootstrapBpmnJS, inject */
var fs = require('fs');
var $ = require('jquery');
var zoomscrollModule = require('../../../../../lib/features/zoomscroll'),
bpmnModule = require('../../../../../lib/core');
describe('features - zoomscroll', function() {
beforeEach(Matchers.add);
var diagramXML = fs.readFileSync('test/fixtures/bpmn/complex.bpmn', 'utf-8');
var testModules = [ zoomscrollModule, bpmnModule ];
beforeEach(bootstrapBpmnJS(diagramXML, { modules: testModules }));
describe('bootstrap', function() {
iit('should bootstrap', inject(function(zoomScroll) {
expect(zoomScroll).not.toBe(null);
}));
});
});