Skip to content

Commit

Permalink
Update dependency @cruglobal/godtools-shared to v1 (#154)
Browse files Browse the repository at this point in the history
* Update dependency @cruglobal/godtools-shared to v1

* add equals and hashCode to the mock objects

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Frett <[email protected]>
  • Loading branch information
renovate[bot] and frett authored Apr 11, 2024
1 parent 6f4a4c4 commit c0bcece
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 7 additions & 6 deletions src/app/_tests/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const standardTypeValues = () => {
__doNotUseOrImplementIt: null,
_events: null,
_getAnalyticsEvents: null,
getAnalyticsEvents: null
getAnalyticsEvents: null,
equals: () => null,
hashCode: () => null
};
};

Expand Down Expand Up @@ -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
};
};

Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c0bcece

Please sign in to comment.