Make the test less strict.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Manuel Friedli 2019-05-04 00:21:38 +02:00
parent 92817becc8
commit dd8356861f
1 changed files with 4 additions and 2 deletions

View File

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