revert tests to previous state

This commit is contained in:
Manuel Friedli 2016-06-27 20:44:55 +02:00
parent fc8dc28fb7
commit 9f63969eff

View file

@ -9,13 +9,7 @@ suite('Bärneruhr', function () {
}); });
teardown(function () { teardown(function () {
var uhr; var uhr = elem.uhr('instance');
try {
uhr = elem.uhr('instance');
} catch (e) {
// no work? goodbye!
return;
}
if (uhr !== undefined) { if (uhr !== undefined) {
cleanupCookies(uhr.id); cleanupCookies(uhr.id);
} }
@ -35,7 +29,9 @@ suite('Bärneruhr', function () {
} }
test('create and destroy widget', function () { test('create and destroy widget', function () {
var id, uhr; var uhr = elem.uhr('instance');
var id;
assert.isUndefined(uhr);
elem.uhr(); elem.uhr();
uhr = elem.uhr('instance'); uhr = elem.uhr('instance');
assert.isNotNull(uhr); assert.isNotNull(uhr);