-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: filter flagged duplicate sets (#4097)
- Loading branch information
1 parent
24be7e8
commit d5cbc2a
Showing
14 changed files
with
247 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Application } from "@bloom-housing/shared-helpers/src/types/backend-swagger" | ||
import { mergeApplicationNames } from "../../src/lib/helpers" | ||
|
||
describe("helpers", () => { | ||
describe("mergeApplicationNames", () => { | ||
it("should merge names for one application", () => { | ||
expect( | ||
mergeApplicationNames([ | ||
{ applicant: { firstName: "FirstA", lastName: "LastA" } } as Application, | ||
]) | ||
).toEqual("FirstA LastA") | ||
}) | ||
it("should merge names for multiple applications", () => { | ||
expect( | ||
mergeApplicationNames([ | ||
{ applicant: { firstName: "FirstA", lastName: "LastA" } } as Application, | ||
{ applicant: { firstName: "FirstB", lastName: "LastB" } } as Application, | ||
{ applicant: { firstName: "FirstC", lastName: "LastC" } } as Application, | ||
]) | ||
).toEqual("FirstA LastA, FirstB LastB, FirstC LastC") | ||
}) | ||
it("should merge names for no application", () => { | ||
expect(mergeApplicationNames([])).toEqual("") | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.