Attempt to fix tests some more

This commit is contained in:
Michael Telatynski 2020-09-15 13:19:47 +01:00
parent 5202037eeb
commit 608249745a
2 changed files with 14 additions and 5 deletions

View file

@ -12,11 +12,11 @@ describe('languageHandler', function() {
languageHandler.setMissingEntryGenerator(key => key.split("|", 2)[1]);
});
it('translates a string to german', function() {
it('translates a string to german', function(done) {
languageHandler.setLanguage('de').then(function() {
const translated = languageHandler._t('Rooms');
expect(translated).toBe('Räume');
});
}).then(done);
});
it('handles plurals', function() {