Skip to content

Commit 6185f85

Browse files
authored
Merge pull request #244 from alphagov/fix-242
fix: test broken by #242
2 parents 7253ad8 + d589ddd commit 6185f85

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/backend/bigquery/bigquery.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ describe('[Function] sendInitQuery', () => {
8686
],
8787
])
8888
.mockResolvedValueOnce([
89-
[
90-
{ government: 'gov1' },
91-
{ government: 'gov2' },
92-
{ government: 'gov3' },
93-
],
89+
[{ title: 'gov1' }, { title: 'gov2' }, { title: 'gov3' }],
9490
])
9591
const result = await sendInitQuery()
9692

@@ -130,7 +126,7 @@ describe('[Function] sendInitQuery', () => {
130126
})
131127
expect(BigQuery.prototype.query).toHaveBeenNthCalledWith(5, {
132128
query: `
133-
SELECT DISTINCT government
129+
SELECT DISTINCT title
134130
FROM \`search.government\`
135131
`,
136132
location: 'europe-west2',

0 commit comments

Comments
 (0)