From dd706e10ecef1e158b7412aa936112aa258a1624 Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Tue, 1 Dec 2020 20:16:22 +0300 Subject: [PATCH] test: fix state util specs according to new casing --- .../extensions/src/tests/state.util.spec.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/npm/ng-packs/packages/theme-shared/extensions/src/tests/state.util.spec.ts b/npm/ng-packs/packages/theme-shared/extensions/src/tests/state.util.spec.ts index 6f72a4a8b7..c0581aae45 100644 --- a/npm/ng-packs/packages/theme-shared/extensions/src/tests/state.util.spec.ts +++ b/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)); expect(propList.length).toBe(4); - expect(propList.head.value.name).toBe('title'); - expect(propList.head.next.value.name).toBe('isHero'); - expect(propList.head.next.next.value.name).toBe('myEnum'); - expect(propList.head.next.next.next.value.name).toBe('foo_Text'); + expect(propList.head.value.name).toBe('Title'); + expect(propList.head.next.value.name).toBe('IsHero'); + expect(propList.head.next.next.value.name).toBe('MyEnum'); + expect(propList.head.next.next.next.value.name).toBe('Foo_Text'); const createFormList = new FormPropList(); contributors.createForm.Role.forEach(callback => callback(createFormList)); expect(createFormList.length).toBe(4); - expect(createFormList.head.value.name).toBe('title'); - expect(createFormList.head.next.value.name).toBe('myEnum'); - expect(createFormList.head.next.next.value.name).toBe('foo'); - expect(createFormList.head.next.next.next.value.name).toBe('foo_Text'); + expect(createFormList.head.value.name).toBe('Title'); + expect(createFormList.head.next.value.name).toBe('MyEnum'); + expect(createFormList.head.next.next.value.name).toBe('Foo'); + expect(createFormList.head.next.next.next.value.name).toBe('Foo_Text'); const editFormList = new FormPropList(); contributors.editForm.Role.forEach(callback => callback(editFormList)); expect(editFormList.length).toBe(4); - expect(editFormList.head.value.name).toBe('title'); - expect(editFormList.head.next.value.name).toBe('isHero'); - expect(editFormList.head.next.next.value.name).toBe('foo'); - expect(editFormList.head.next.next.next.value.name).toBe('foo_Text'); + expect(editFormList.head.value.name).toBe('Title'); + expect(editFormList.head.next.value.name).toBe('IsHero'); + expect(editFormList.head.next.next.value.name).toBe('Foo'); + expect(editFormList.head.next.next.next.value.name).toBe('Foo_Text'); }); }); });