Skip to content

Commit a3201c8

Browse files
committed
Failing test for incomplete inlined function calls
1 parent 1f6f904 commit a3201c8

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const decideZoomByAccuracy = (range) => {
2+
const isUnder = (accuracy) => {
3+
return range <= accuracy;
4+
};
5+
if (isUnder(0)) {
6+
return 15;
7+
}
8+
if (isUnder(50)) {
9+
return 15;
10+
}
11+
if (isUnder(100)) {
12+
return 15;
13+
}
14+
return 11;
15+
};
16+
export const zoom = decideZoomByAccuracy(75);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const zoom = 15;

0 commit comments

Comments
 (0)