message: Add tests for implementation of quantity of items
diff: @@ -36,6 +36,18 @@ describe('/api/BasketItems', () => {
  })
  .expect('status', 200)
  })
  +
  + it('POST new basket item with more than available quantity is forbidden', () => {
  + return frisby.post(API_URL + '/BasketItems', {
  + headers: authHeader,
  + body: {
  + BasketId: 2,
  + ProductId: 2,
  + quantity: 101
  + }
  + })
  + .expect('status', 401)
  + })
  })
  describe('/api/BasketItems/:id', () => {
  @@ -138,6 +150,27 @@ describe('/api/BasketItems/:id', () => {
  })
  })
  + it('PUT update newly created basket item with more than available quantity is forbidden', () => {
  + return frisby.post(API_URL + '/BasketItems', {
  + headers: authHeader,
  + body: {
  + BasketId: 3,
  + ProductId: 12,
  + quantity: 12
  + }
  + })
  + .expect('status', 200)
  + .then(({ json }) => {
  + return frisby.put(API_URL + '/BasketItems/' + json.data.id, {
  + headers: authHeader,
  + body: {
  + quantity: 100
  + }
  + })
  + .expect('status', 401)
  + })
  + })
  +
  it('DELETE newly created basket item', () => {
  return frisby.post(API_URL + '/BasketItems', {
  headers: authHeader,
  