diff --git a/package.json b/package.json index 484a917c..23904fd6 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@angular/platform-browser": "^13.4.0", "@angular/platform-browser-dynamic": "^13.4.0", "@angular/router": "^13.4.0", - "@cruglobal/godtools-shared": "0.9.2", + "@cruglobal/godtools-shared": "1.0.1", "@rails/actioncable": "^7.0.0", "core-js": "^2.5.4", "eslint-config-prettier": "^8.8.0", diff --git a/src/app/_tests/mocks.ts b/src/app/_tests/mocks.ts index c4be745f..a29ba799 100644 --- a/src/app/_tests/mocks.ts +++ b/src/app/_tests/mocks.ts @@ -51,7 +51,9 @@ const standardTypeValues = () => { __doNotUseOrImplementIt: null, _events: null, _getAnalyticsEvents: null, - getAnalyticsEvents: null + getAnalyticsEvents: null, + equals: () => null, + hashCode: () => null }; }; @@ -86,7 +88,9 @@ const createEventId = (name: string, namespace?: string): EventId => { const createResource = (name: string, localName: string): Resource => { return { localName, - name + name, + equals: () => null, + hashCode: () => null }; }; @@ -104,10 +108,7 @@ const createButton = (text: string, url: string, event: string): Button => { width: '', buttonColor: '', backgroundColor: '', - icon: { - localName: '', - name: '' - }, + icon: createResource('', ''), iconGravity: { name: 'CENTER', ordinal: 1 diff --git a/yarn.lock b/yarn.lock index f58af5a8..ef53db92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1277,10 +1277,10 @@ resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== -"@cruglobal/godtools-shared@0.9.2": - version "0.9.2" - resolved "https://registry.yarnpkg.com/@cruglobal/godtools-shared/-/godtools-shared-0.9.2.tgz#778a795760c69739ffff953d45a8766af9370716" - integrity sha512-Xla2sOaO8LGKmc43uFGcgJz2Fx4RAmslsQYH2P6vk3qvFDjyGSKEt1SW+nG9tfmFQe02RS4uDEm3mG0EGZBOAg== +"@cruglobal/godtools-shared@1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@cruglobal/godtools-shared/-/godtools-shared-1.0.1.tgz#bc8f21f080624a728bf9ee68027bf9e5db593a31" + integrity sha512-nfO3+ynlq8L7n35APg/EgC4hvHHSBaidqQzpSgTkP1Os9HCHtQOymPgSaU+FA/Uyic7oaIr9w7Nt5vITybDHmw== dependencies: format-util "^1.0.5" sax "1.2.4"