message: test(origin-ui): added order book generation time positive test
diff: @@ -362,4 +362,23 @@ describe('orderbook tests', () => {
  expect(lastTradedPrice.price).equals(windTradeLastTradePrice.price);
  expect(lastTradedPrice.assetId).equals(windTradeLastTradePrice.assetId);
  });
  +
  + it('should return orders filtered by generation time', async () => {
  + const {
  + body: { asks, bids }
  + }: { body: OrderBook } = await request(app.getHttpServer())
  + .post('/orderbook/search')
  + .send({
  + ...defaultAllFilter,
  + generationTimeFilter: Filter.Specific,
  + generationFrom: moment().startOf('month').toISOString(),
  + generationTo: moment().startOf('month').add(1, 'month').toISOString()
  + })
  + .expect('Content-Type', /application\/json/)
  + .expect(200);
  +
  + expect(asks).to.have.length(0);
  + expect(bids).to.have.length(1);
  + expect(bids[0].product.deviceType).to.deep.equal(['Wind']);
  + });
  });
  