removed unused code
This commit is contained in:
parent
5d9f9c89fc
commit
394ca64c34
|
|
@ -1,6 +1,5 @@
|
|||
const db = require("../models/index");
|
||||
const PitchType = db.PitchType;
|
||||
const Op = db.Sequelize.Op;
|
||||
|
||||
exports.findAll = (req, res) => {
|
||||
PitchType.findAll()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
/** @type {import('sequelize-cli').Migration} */
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue