Skip to content

Commit

Permalink
remove plain nunjucks from findPage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rosado committed Oct 1, 2024
1 parent f59d135 commit 593863f
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions test/unit/findPage.test.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
import { describe, it, expect } from 'vitest'
import nunjucks from 'nunjucks'
import addFilters from '../../src/filters/filters'
import { setupNunjucks } from '../../src/serverSetup/nunjucks.js'
import jsdom from 'jsdom'
import { runGenericPageTests } from './generic-page.js'
import config from '../../config/index.js'
import mock from '../utils/mocker.js'
import { OrgFindPage } from '../../src/routes/schemas.js'

const nunjucksEnv = nunjucks.configure([
'src/views',
'src/views/check',
'src/views/submit',
'node_modules/govuk-frontend/dist/',
'node_modules/@x-govuk/govuk-prototype-components/'
], {
dev: true,
noCache: true,
watch: true
})

addFilters(nunjucksEnv, {})
const nunjucks = setupNunjucks({})

describe('Organisations Find Page', () => {
const params = mock(OrgFindPage)
Expand Down

0 comments on commit 593863f

Please sign in to comment.