From 0f05190aa844b82c303ee9e3b602fdbfb96eda89 Mon Sep 17 00:00:00 2001 From: George Goodall Date: Wed, 6 Dec 2023 11:34:29 +0000 Subject: [PATCH] updated pagecontroller file name to be lowercase --- src/controllers/datasetController.js | 2 +- src/controllers/errorsController.js | 2 +- src/controllers/{PageController.js => pageController.js} | 0 src/controllers/uploadController.js | 2 +- test/unit/MyController.test.js | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename src/controllers/{PageController.js => pageController.js} (100%) diff --git a/src/controllers/datasetController.js b/src/controllers/datasetController.js index e419df64..3b8c9bcd 100644 --- a/src/controllers/datasetController.js +++ b/src/controllers/datasetController.js @@ -1,6 +1,6 @@ 'use strict' -import PageController from './PageController.js' +import PageController from './pageController.js' // ToDo: we shouldn't hardcode these values here, should we get them from the API // maybe take from specification diff --git a/src/controllers/errorsController.js b/src/controllers/errorsController.js index 982b329a..4859b987 100644 --- a/src/controllers/errorsController.js +++ b/src/controllers/errorsController.js @@ -1,6 +1,6 @@ 'use strict' -import PageController from './PageController.js' +import PageController from './pageController.js' import { severityLevels, dataSubjects } from '../utils/utils.js' diff --git a/src/controllers/PageController.js b/src/controllers/pageController.js similarity index 100% rename from src/controllers/PageController.js rename to src/controllers/pageController.js diff --git a/src/controllers/uploadController.js b/src/controllers/uploadController.js index 49e97c1f..4bf78fec 100644 --- a/src/controllers/uploadController.js +++ b/src/controllers/uploadController.js @@ -3,7 +3,7 @@ import multer from 'multer' import axios from 'axios' import { readFile } from 'fs/promises' import { lookup } from 'mime-types' -import PageController from './PageController.js' +import PageController from './pageController.js' import config from '../../config/index.js' import { severityLevels } from '../utils/utils.js' diff --git a/test/unit/MyController.test.js b/test/unit/MyController.test.js index cce0e233..b8c47809 100644 --- a/test/unit/MyController.test.js +++ b/test/unit/MyController.test.js @@ -1,4 +1,4 @@ -import PageController from '../../src/controllers/PageController.js' +import PageController from '../../src/controllers/pageController.js' import { describe, it, vi, expect } from 'vitest'