Skip to content

Commit

Permalink
remove old unneeded testing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Feb 14, 2024
1 parent 12e508d commit 60306fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/controllers/uploadController.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import config from '../../config/index.js'
import { severityLevels } from '../utils/utils.js'
import logger from '../utils/logger.js'

const apiEndpoint = process.env.NODE_ENV === 'test' ? config.api.localUrl : config.api.url

class UploadController extends PageController {
apiRoute = apiEndpoint + config.api.validationEndpoint
apiRoute = config.api.url + config.api.validationEndpoint

async get (req, res, next) {
req.form.options.validationError = this.validationErrorMessage
Expand Down

0 comments on commit 60306fa

Please sign in to comment.