diff --git a/backend/controllers/pitchType.controller.js b/backend/controllers/pitchType.controller.js index 5528efe..fbc6fb0 100644 --- a/backend/controllers/pitchType.controller.js +++ b/backend/controllers/pitchType.controller.js @@ -1,6 +1,5 @@ const db = require("../models/index"); const PitchType = db.PitchType; -const Op = db.Sequelize.Op; exports.findAll = (req, res) => { PitchType.findAll() diff --git a/backend/seeders/03-pitch-types.js b/backend/seeders/03-pitch-types.js index 9dab30c..d1f489e 100644 --- a/backend/seeders/03-pitch-types.js +++ b/backend/seeders/03-pitch-types.js @@ -1,5 +1,3 @@ -'use strict'; - /** @type {import('sequelize-cli').Migration} */ module.exports = { async up (queryInterface, Sequelize) { diff --git a/backend/test/pitchType.test.js b/backend/test/pitchType.test.js index 202839b..d0a41ee 100644 --- a/backend/test/pitchType.test.js +++ b/backend/test/pitchType.test.js @@ -3,21 +3,19 @@ const { expect, describe, test, - afterAll, } = require('@jest/globals'); const app = require("../app") describe("Test retrieving pitch types", () => { test("should retrieve all pitch types", async () => { - let user = {}; let response = await request(app) .post("/api/auth/login") .send({ email: 'ryan.nolan@bullpen.com', password: 'nolan' }); - user = response.body; + const user = response.body; response = await request(app) .get('/api/pitch_types') diff --git a/backend/test/user.test.js b/backend/test/user.test.js index 1092200..1881ba4 100644 --- a/backend/test/user.test.js +++ b/backend/test/user.test.js @@ -8,7 +8,6 @@ const { const app = require("../app") const { signupUser } = require("./data/user.test.data") -const res = require("express/lib/response"); describe("Test user authentication", () => { test("should register a user", async () => {