Skip to content

Commit 5664175

Browse files
committed
chore: rename property data to input
1 parent 2594d20 commit 5664175

File tree

4 files changed

+154
-154
lines changed

4 files changed

+154
-154
lines changed

src/compile.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ const testsByCategory = groupByCategory(suite.tests) as Record<string, CompileTe
3131
for (const [category, tests] of Object.entries(testsByCategory)) {
3232
describe(category, () => {
3333
for (const currentTest of tests) {
34-
const { description, data, query, output } = currentTest
34+
const { description, input, query, output } = currentTest
3535

3636
test(description, () => {
37-
const actualOutput = compile(query)(data)
37+
const actualOutput = compile(query)(input)
3838

39-
expect({ data, query, output: actualOutput }).toEqual({ data, query, output })
39+
expect({ input, query, output: actualOutput }).toEqual({ input, query, output })
4040
})
4141
}
4242
})

test-suite/compile.test.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { JSONQuery } from '../src/types'
33
export interface CompileTest {
44
category: string
55
description: string
6-
data: unknown
6+
input: unknown
77
query: JSONQuery
88
output: unknown
99
}

0 commit comments

Comments
 (0)