Skip to content

Commit

Permalink
refactor: changed jest snapshots to custom json files, removed deprec…
Browse files Browse the repository at this point in the history
…ated referenceNumber field from licenses
  • Loading branch information
Lukasz-pluszczewski committed Dec 26, 2024
1 parent 34e66f2 commit 890df38
Show file tree
Hide file tree
Showing 12 changed files with 363 additions and 28,744 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ yarn-error.log*

# Misc
.DS_Store
*.pem
*.pem
.aider*
2 changes: 0 additions & 2 deletions packages/core/src/check-license-status.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ describe("checkLicenseStatus", () => {
| "isDeprecatedLicenseId"
| "detailsUrl"
| "reference"
| "referenceNumber"
| "seeAlso"
> = {
isOsiApproved: false,
isDeprecatedLicenseId: false,
detailsUrl: "",
reference: "",
referenceNumber: 0,
seeAlso: [],
};

Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/map-licenses-to-statuses.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ const baseLicense: Pick<
| "isDeprecatedLicenseId"
| "isOsiApproved"
| "seeAlso"
| "referenceNumber"
| "detailsUrl"
| "reference"
| "name"
> = {
isDeprecatedLicenseId: false,
isOsiApproved: true,
seeAlso: [],
referenceNumber: 0,
detailsUrl: "",
reference: "",
name: "",
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/resolve-license-status.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ describe("resolveLicenseStatus", () => {
| "isDeprecatedLicenseId"
| "isOsiApproved"
| "seeAlso"
| "referenceNumber"
| "detailsUrl"
| "reference"
| "source"
Expand All @@ -18,7 +17,6 @@ describe("resolveLicenseStatus", () => {
isDeprecatedLicenseId: false,
isOsiApproved: true,
seeAlso: [],
referenceNumber: 0,
detailsUrl: "",
reference: "",
name: "",
Expand Down
Loading

0 comments on commit 890df38

Please sign in to comment.