21 lines
588 B
JavaScript
21 lines
588 B
JavaScript
suite('Bärneruhr', function () {
|
|
'use strict';
|
|
var assert = chai.assert;
|
|
test('create widget', function () {
|
|
var e = jQuery('#u');
|
|
var uhr = e.uhr('instance');
|
|
assert.isUndefined(uhr);
|
|
uhr = e.uhr();
|
|
assert.isNotNull(uhr);
|
|
assert.isDefined(uhr);
|
|
});
|
|
test('destroy widget', function() {
|
|
var e = jQuery('#u');
|
|
var uhr = e.uhr('instance');
|
|
assert.isNotNull(uhr);
|
|
assert.isDefined(uhr);
|
|
e.uhr('destroy');
|
|
uhr = e.uhr('instance');
|
|
assert.isUndefined(uhr);
|
|
});
|
|
});
|