revert tests to previous state

This commit is contained in:
Manuel Friedli 2016-06-27 20:44:55 +02:00
parent fc8dc28fb7
commit 9f63969eff
1 changed files with 4 additions and 8 deletions

View File

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