removed unused code

This commit is contained in:
Sascha Kühl 2025-03-21 18:00:21 +01:00
parent 5d9f9c89fc
commit 394ca64c34
4 changed files with 1 additions and 7 deletions

View File

@ -1,6 +1,5 @@
const db = require("../models/index"); const db = require("../models/index");
const PitchType = db.PitchType; const PitchType = db.PitchType;
const Op = db.Sequelize.Op;
exports.findAll = (req, res) => { exports.findAll = (req, res) => {
PitchType.findAll() PitchType.findAll()

View File

@ -1,5 +1,3 @@
'use strict';
/** @type {import('sequelize-cli').Migration} */ /** @type {import('sequelize-cli').Migration} */
module.exports = { module.exports = {
async up (queryInterface, Sequelize) { async up (queryInterface, Sequelize) {

View File

@ -3,21 +3,19 @@ const {
expect, expect,
describe, describe,
test, test,
afterAll,
} = require('@jest/globals'); } = require('@jest/globals');
const app = require("../app") const app = require("../app")
describe("Test retrieving pitch types", () => { describe("Test retrieving pitch types", () => {
test("should retrieve all pitch types", async () => { test("should retrieve all pitch types", async () => {
let user = {};
let response = await request(app) let response = await request(app)
.post("/api/auth/login") .post("/api/auth/login")
.send({ .send({
email: 'ryan.nolan@bullpen.com', email: 'ryan.nolan@bullpen.com',
password: 'nolan' password: 'nolan'
}); });
user = response.body; const user = response.body;
response = await request(app) response = await request(app)
.get('/api/pitch_types') .get('/api/pitch_types')

View File

@ -8,7 +8,6 @@ const {
const app = require("../app") const app = require("../app")
const { signupUser } = require("./data/user.test.data") const { signupUser } = require("./data/user.test.data")
const res = require("express/lib/response");
describe("Test user authentication", () => { describe("Test user authentication", () => {
test("should register a user", async () => { test("should register a user", async () => {