revert tests to previous state
This commit is contained in:
parent
fc8dc28fb7
commit
9f63969eff
1 changed files with 4 additions and 8 deletions
12
test/test.js
12
test/test.js
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue