Browse Source

test: fix state util specs according to new casing

pull/6432/head
Arman Ozak 6 years ago
parent
commit
dd706e10ec
  1. 24
      npm/ng-packs/packages/theme-shared/extensions/src/tests/state.util.spec.ts

24
npm/ng-packs/packages/theme-shared/extensions/src/tests/state.util.spec.ts

@ -51,28 +51,28 @@ describe('State Utils', () => {
contributors.prop.Role.forEach(callback => callback(propList)); contributors.prop.Role.forEach(callback => callback(propList));
expect(propList.length).toBe(4); expect(propList.length).toBe(4);
expect(propList.head.value.name).toBe('title'); expect(propList.head.value.name).toBe('Title');
expect(propList.head.next.value.name).toBe('isHero'); expect(propList.head.next.value.name).toBe('IsHero');
expect(propList.head.next.next.value.name).toBe('myEnum'); expect(propList.head.next.next.value.name).toBe('MyEnum');
expect(propList.head.next.next.next.value.name).toBe('foo_Text'); expect(propList.head.next.next.next.value.name).toBe('Foo_Text');
const createFormList = new FormPropList(); const createFormList = new FormPropList();
contributors.createForm.Role.forEach(callback => callback(createFormList)); contributors.createForm.Role.forEach(callback => callback(createFormList));
expect(createFormList.length).toBe(4); expect(createFormList.length).toBe(4);
expect(createFormList.head.value.name).toBe('title'); expect(createFormList.head.value.name).toBe('Title');
expect(createFormList.head.next.value.name).toBe('myEnum'); expect(createFormList.head.next.value.name).toBe('MyEnum');
expect(createFormList.head.next.next.value.name).toBe('foo'); expect(createFormList.head.next.next.value.name).toBe('Foo');
expect(createFormList.head.next.next.next.value.name).toBe('foo_Text'); expect(createFormList.head.next.next.next.value.name).toBe('Foo_Text');
const editFormList = new FormPropList(); const editFormList = new FormPropList();
contributors.editForm.Role.forEach(callback => callback(editFormList)); contributors.editForm.Role.forEach(callback => callback(editFormList));
expect(editFormList.length).toBe(4); expect(editFormList.length).toBe(4);
expect(editFormList.head.value.name).toBe('title'); expect(editFormList.head.value.name).toBe('Title');
expect(editFormList.head.next.value.name).toBe('isHero'); expect(editFormList.head.next.value.name).toBe('IsHero');
expect(editFormList.head.next.next.value.name).toBe('foo'); expect(editFormList.head.next.next.value.name).toBe('Foo');
expect(editFormList.head.next.next.next.value.name).toBe('foo_Text'); expect(editFormList.head.next.next.next.value.name).toBe('Foo_Text');
}); });
}); });
}); });

Loading…
Cancel
Save