Files
BeWoPlaner/BeWoPlanerMobil/node_modules/cldr/test/extractTerritoryContainmentGroups.js
Lyndon Jetten 88fd24f3a9 MoK:
- 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)
2023-05-15 11:54:13 +02:00

33 lines
884 B
JavaScript

const expect = require('unexpected');
const cldr = require('../lib/cldr');
describe('extractTerritoryContainmentGroups', () => {
let territoryContainmentGroups;
before(() => {
territoryContainmentGroups = cldr.extractTerritoryContainmentGroups();
});
it('contains group 029, which is a descendant of 019, which is a descendant of 001', () => {
expect(territoryContainmentGroups, 'to have properties', [
'029',
'019',
'001',
]);
});
it('only contains groups that are descendants of group 001', () => {
expect(
Object.keys(territoryContainmentGroups),
'to have items satisfying',
expect.it((index) => {
const item = territoryContainmentGroups[index];
expect(
index === '001' || ('parent' in item && Boolean(item.parent)),
'to be',
true
);
})
);
});
});