Open georgiakirkpatrick opened 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', () => {
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', () => {
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', () => {