georgiakirkpatrick / veronaut-products-api

Fashion sustainability research, but make it shopping.
0 stars 0 forks source link

Troubleshoot hanging tests #3

Open georgiakirkpatrick opened 3 years ago

georgiakirkpatrick commented 3 years ago
describe('POST /api/fabrics', () => {
    beforeEach(() =>  db.into('fabric_types').insert(fabricTypes))
    beforeEach(() =>  db.into('brands').insert(brands))
    it.only('creates a fabric, responding with 201 and the new fabric', () => {}
georgiakirkpatrick commented 3 years ago
describe.only('PATCH /api/factories/:factory_id', () => {
    context('when the factory with id factory_id exists', () => {
        beforeEach(() =>  db.into('factories').insert(factories))

        it('updates the factory and responds 204', () => {

        it('responds with 204 when updating only a subset of fields', () => {
georgiakirkpatrick commented 3 years ago
describe.only('DELETE /api/factories/:factory_id', () => {
    context('when the factory with id factory_id exists', () => {
        beforeEach(() =>  db.into('factories').insert(factories))

        it.only('removes the factory and responds 204', () => {
georgiakirkpatrick commented 3 years ago
describe('POST /api/notions/notion-types', () => {
    it.only('creates a new notion type, responding with 201 and the new notion type', () => {

    it.only(`responds with 400 and an error message when the 'english_name' field is missing`, () => {

    it.only('removes XSS attack content from the response', () => {