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 PitchType = db.PitchType;
const Op = db.Sequelize.Op;
exports.findAll = (req, res) => {
PitchType.findAll()

View File

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

View File

@ -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')

View File

@ -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 () => {