Skip to content

Commit

Permalink
[backend] fix inconsistent test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyCloarec committed Sep 24, 2024
1 parent dd8173f commit 2b99109
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ import { schemaAttributesDefinition } from '../../../src/schema/schema-attribute
describe('Schema utilities', () => {
let mapping;
it('getAttributeMappingFromPath gives access to internal attribute definitions', () => {
mapping = schemaAttributesDefinition.getAttributeMappingFromPath('name');
mapping = schemaAttributesDefinition.getAttributeMappingFromPath('standard_id');
expect(mapping).toEqual({
editDefault: false,
name: 'standard_id',
label: 'Standard id',
type: 'string',
format: 'short',
isFilterable: true,
label: 'Name',
mandatoryType: 'external',
update: false,
mandatoryType: 'internal',
editDefault: false,
multiple: false,
name: 'name',
type: 'string',
upsert: false,
isFilterable: false,
});
mapping = schemaAttributesDefinition.getAttributeMappingFromPath('group_confidence_level.overrides.entity_type');
expect(mapping).toEqual({
Expand Down

0 comments on commit 2b99109

Please sign in to comment.