diff --git a/config/openai.json b/config/openai.json index 411d1bd..7ca9729 100644 --- a/config/openai.json +++ b/config/openai.json @@ -11,13 +11,6 @@ { "role": "system", "content": "A typical order flow should be search > select > init > confirm."}, { "role": "system", "content": "Use the response of search from assistant to select items from the list of items provided by the assistant."}, { "role": "system", "content": "Use the response of search request from assistant for filling transaction_id, bpp_id, bpp_uri in the context of all calls except `search`."}, - { "role": "system", "content": "Use the response from assistant to select items from the list of items provided by the assistant."}, { "role": "system", "content": "For `select`, `init`, `confirm`, you must use the item `id` as part of the payload for selected item instead of name or any other key."} - ], - "PRESETS" : { - "bap_id": "mit-ps-bap.becknprotocol.io", - "bap_uri": "https://mit-ps-bap.becknprotocol.io", - "version": "1.1.0", - "base_url": "https://mit-ps-bap-client.becknprotocol.io" - } + ] } \ No newline at end of file diff --git a/tests/unit/services/actions.test.js b/tests/unit/services/actions.test.js index dc46345..45994c5 100644 --- a/tests/unit/services/actions.test.js +++ b/tests/unit/services/actions.test.js @@ -46,7 +46,7 @@ describe.skip('Test cases for process_instruction function', ()=> { }) }) -describe.only('should test send_message()', () => { +describe('should test send_message()', () => { it('should test send a message via Twilio', async () => { const recipient = process.env.TEST_RECEPIENT_NUMBER; const message = "hi, this is a test message"; @@ -68,12 +68,10 @@ describe.only('should test send_message()', () => { it('should throw an error for invalid recipient', async () => { const recipient = ''; const message = 'Test message'; - try { await actionsService.send_message(recipient, message); throw new Error('Expected an error to be thrown'); } catch (error) { - expect(error).to.be.an.instanceOf(Error); } }); @@ -81,7 +79,6 @@ describe.only('should test send_message()', () => { it('should throw an error for empty message', async () => { const recipient = process.env.TEST_RECEPIENT_NUMBER; const message = ''; - try { await actionsService.send_message(recipient, message); throw new Error('Expected an error to be thrown');