Skip to content

Commit

Permalink
fix DomainsPage test variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lcampbell2 committed Apr 2, 2024
1 parent 6432baa commit 8c613aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "webpack serve --hot --env development",
"webpack": "webpack",
"start": "NODE_OPTIONS=--openssl-legacy-provider node index.js",
"test": "jest",
"test": "jest --silent",
"test-coverage": "jest --coverage",
"lint": "eslint src",
"dbg": "node --inspect-brk node_modules/.bin/jest --runInBand --no-cache",
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/domains/__tests__/DomainsPage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('<DomainsPage />', () => {
orderBy: { field: 'DOMAIN', direction: 'ASC' },
search: '',
isAffiliated: true,
filters: [{ filterCategory: 'HTTPS_STATUS', comparison: 'NOT_EQUAL', filterValue: 'INFO' }],
},
},
result: {
Expand Down Expand Up @@ -115,7 +116,13 @@ describe('<DomainsPage />', () => {
{
request: {
query: PAGINATED_DOMAINS,
variables: { first: 10, orderBy: { field: 'DOMAIN', direction: 'ASC' }, search: '', isAffiliated: false },
variables: {
first: 10,
orderBy: { field: 'DOMAIN', direction: 'ASC' },
search: '',
isAffiliated: false,
filters: [{ filterCategory: 'HTTPS_STATUS', comparison: 'NOT_EQUAL', filterValue: 'INFO' }],
},
},
result: {
data: {
Expand Down Expand Up @@ -203,6 +210,7 @@ describe('<DomainsPage />', () => {
orderBy: { field: 'DOMAIN', direction: 'ASC' },
search: '',
isAffiliated: false,
filters: [{ filterCategory: 'HTTPS_STATUS', comparison: 'NOT_EQUAL', filterValue: 'INFO' }],
},
},
result: {
Expand Down

0 comments on commit 8c613aa

Please sign in to comment.