Skip to content

Commit

Permalink
Fixed tests after update
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiobianchini committed May 6, 2024
1 parent 3191eb1 commit 3a3fe5f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ describe('break-point-provider', () => {
{ alias: 'cd', priority: 2000, mediaQuery: '(min-width: 298px) and (max-width:414px)' }
];
let bpList: BreakPoint[];
let accumulator: BreakPoint | null = null;
let byAlias = (alias: string): BreakPoint | null => bpList.reduce((pos, it) => {
return pos || ((it.alias === alias) ? it : null);
let accumulator: BreakPoint;
let byAlias = (alias: string): BreakPoint | null => bpList.reduce((previous, current) => {
return previous || ((current.alias === alias) ? current : null);
}, accumulator);

beforeEach(async(() => {
Expand Down

0 comments on commit 3a3fe5f

Please sign in to comment.