the build runs!

This commit is contained in:
Manuel Friedli 2016-06-27 20:26:20 +02:00
parent c5bc72c0ad
commit bb0dab5434
18 changed files with 242 additions and 183 deletions

View file

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