Make the test less strict.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Manuel Friedli 2019-05-04 00:21:38 +02:00
parent 92817becc8
commit dd8356861f

View file

@ -95,8 +95,10 @@ suite('Bärneruhr', function () {
language: 'klingon' language: 'klingon'
}); });
uhr = elem.uhr('instance'); uhr = elem.uhr('instance');
// NB: 'de' is just the first language that is included in the page. that may change! // The 'uhr' element must be created, and a fall-back language must have been selected
assert.equal(uhr.options.language, 'de'); assert.isTrue(!!uhr);
assert.isTrue(!!uhr.options.language);
assert.notEqual(uhr.options.language, 'klingon');
}); });
test('unknown theme', function () { test('unknown theme', function () {