Skip to content

Commit e44bef1

Browse files
committed
remove alias in test for isIn
1 parent 59b065c commit e44bef1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/db/src/query/builder/functions.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ export function isIn(
128128
return new Func(`in`, [toExpression(value), toExpression(array)])
129129
}
130130

131-
// Export as 'in' for the examples in README
132-
export { isIn as in }
133-
134131
export function like(
135132
left:
136133
| RefProxy<string>

packages/db/tests/query/builder/functions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
eq,
1212
gt,
1313
gte,
14-
isIn as isInFunc,
14+
isIn,
1515
length,
1616
like,
1717
lower,
@@ -222,7 +222,7 @@ describe(`QueryBuilder Functions`, () => {
222222
const builder = new BaseQueryBuilder()
223223
const query = builder
224224
.from({ employees: employeesCollection })
225-
.where(({ employees }) => isInFunc(employees.department_id, [1, 2, 3]))
225+
.where(({ employees }) => isIn(employees.department_id, [1, 2, 3]))
226226

227227
const builtQuery = getQuery(query)
228228
expect((builtQuery.where as any)?.name).toBe(`in`)

0 commit comments

Comments
 (0)