Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edlouth committed Aug 17, 2023
1 parent 59c0ef9 commit 9a510e1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions grai-frontend/src/components/home/HomeCards.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ test("renders", async () => {
filtered: 38,
},
},
tables: {
nodes: {
meta: {
total: 2,
filtered: 2,
},
},
connections: {
Expand Down
4 changes: 2 additions & 2 deletions grai-frontend/src/components/tables/TableEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const GET_TABLE_EVENTS = gql`
) {
workspace(organisationName: $organisationName, name: $workspaceName) {
id
table(id: $tableId) {
node(id: $tableId) {
id
events {
data {
Expand Down Expand Up @@ -72,7 +72,7 @@ const TableEvents: React.FC<TableEventsProps> = ({ table, responsive }) => {
if (error) return <GraphError error={error} />
if (loading) return <Loading />

const tableData = data?.workspace?.table
const tableData = data?.workspace?.node

if (!tableData) return <NotFound />

Expand Down
26 changes: 13 additions & 13 deletions grai-frontend/src/components/tables/__generated__/GetTableEvents.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions grai-frontend/src/pages/Home.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ test("no reports", async () => {
filtered: 0,
},
},
tables: {
nodes: {
meta: {
total: 0,
filtered: 0,
},
},
connections: {
Expand Down

0 comments on commit 9a510e1

Please sign in to comment.