Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Dec 13, 2024
1 parent 84873d8 commit 1f64b57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/unit/OptionsListUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ describe('OptionsListUtils', () => {

beforeEach(() => {
OPTIONS = OptionsListUtils.createOptionList(PERSONAL_DETAILS, REPORTS);
console.log(OPTIONS);
OPTIONS_WITH_CONCIERGE = OptionsListUtils.createOptionList(PERSONAL_DETAILS_WITH_CONCIERGE, REPORTS_WITH_CONCIERGE);
OPTIONS_WITH_CHRONOS = OptionsListUtils.createOptionList(PERSONAL_DETAILS_WITH_CHRONOS, REPORTS_WITH_CHRONOS);
OPTIONS_WITH_RECEIPTS = OptionsListUtils.createOptionList(PERSONAL_DETAILS_WITH_RECEIPTS, REPORTS_WITH_RECEIPTS);
Expand Down Expand Up @@ -1002,11 +1001,9 @@ describe('OptionsListUtils', () => {
});

it('should return prefix match before suffix match', () => {
const options = OptionsListUtils.getSearchOptions(OPTIONS, '');
console.log(options);
const options = OptionsListUtils.getSearchOptions(OPTIONS);
const filteredOptions = OptionsListUtils.filterOptions(options, 'String');

console.log(filteredOptions);
expect(filteredOptions.personalDetails.length).toBe(2);
expect(filteredOptions.personalDetails.at(0)?.text).toBe('String');
expect(filteredOptions.personalDetails.at(1)?.text).toBe('SubString');
Expand Down

0 comments on commit 1f64b57

Please sign in to comment.