- Bug beim Übernehmen eines Termins in die Zeiterfassung, wenn man Stunden als Zeiteinheit ausgewählt hatte, behoben. - Berichte und Mitarbeiterstundenkonto eingebaut - Node-Module optimiert (sehr viele gelöscht)
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
const expect = require('unexpected');
|
|
|
|
const cldr = require('../lib/cldr');
|
|
|
|
describe('extractLanguageSupplementalData', () => {
|
|
it('should return an object with locale ids as keys and objects as values', () => {
|
|
expect(cldr.extractLanguageSupplementalData(), 'to satisfy', {
|
|
en: {},
|
|
fr: {},
|
|
});
|
|
});
|
|
|
|
it('should return a list of scripts for English', () => {
|
|
expect(cldr.extractLanguageSupplementalData(), 'to satisfy', {
|
|
en: {
|
|
scripts: ['Latn'],
|
|
},
|
|
});
|
|
});
|
|
|
|
it('should return a list of territories for English', () => {
|
|
expect(cldr.extractLanguageSupplementalData(), 'to satisfy', {
|
|
en: {
|
|
territories: expect.it('to contain', 'GB', 'US'),
|
|
},
|
|
});
|
|
});
|
|
|
|
it('should return a list of secondary scripts for English', () => {
|
|
expect(cldr.extractLanguageSupplementalData(), 'to satisfy', {
|
|
en: {
|
|
secondary: {
|
|
scripts: ['Dsrt', 'Shaw'],
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
it('should return a list of secondary territories for English', () => {
|
|
expect(cldr.extractLanguageSupplementalData(), 'to satisfy', {
|
|
en: {
|
|
secondary: {
|
|
territories: expect.it('to contain', 'CZ', 'DE'),
|
|
},
|
|
},
|
|
});
|
|
});
|
|
});
|