[verified] Restore Chatwoot Hub compatibility APIs
This commit is contained in:
@@ -7,6 +7,11 @@ describe ChatwootHub do
|
||||
expect(described_class).not_to respond_to(:emit_event)
|
||||
end
|
||||
|
||||
it 'retains push and instance compatibility APIs for the push-relay task' do
|
||||
expect(described_class).to respond_to(:push_notification_url, :send_push, :send_push_with_response, :instance_config)
|
||||
expect(described_class.push_notification_url).to eq('https://hub.2.chatwoot.com/send_push')
|
||||
end
|
||||
|
||||
describe '.base_url' do
|
||||
it 'uses the static hub url' do
|
||||
expect(described_class::DEFAULT_BASE_URL).to eq('https://hub.2.chatwoot.com')
|
||||
|
||||
Reference in New Issue
Block a user