Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NevilleS committed Sep 24, 2023
1 parent 40320e9 commit 5797c6d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions clients/fides-js/__tests__/lib/consent-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,16 @@ describe("isPrivacyExperience", () => {
{ label: "an object", obj: { foo: "bar" }, expected: false },
{ label: "a string", obj: "foo", expected: false },
{ label: "an empty object", obj: {}, expected: true },
{ label: "an object with 'id'", obj: { id: "123456", foo: "bar" }, expected: true },
{ label: "a full 'experience' object", obj: MOCK_EXPERIENCE, expected: true },
{
label: "an object with 'id'",
obj: { id: "123456", foo: "bar" },
expected: true,
},
{
label: "a full 'experience' object",
obj: MOCK_EXPERIENCE,
expected: true,
},
])("returns $expected when input is $label", ({ obj, expected }) => {
expect(isPrivacyExperience(obj as any)).toBe(expected);
});
Expand Down
2 changes: 1 addition & 1 deletion clients/fides-js/src/lib/consent-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const debugLog = (

/**
* Returns true if the provided input is a valid PrivacyExperience object.
*
*
* This includes the special case where the input is an empty object ({}), which
* is a valid response when the API does not find a PrivacyExperience configured
* for the given geolocation.
Expand Down

0 comments on commit 5797c6d

Please sign in to comment.