<commit_before>import QuotesHelper from './quotesHelper';

describe('JavaScript addition operator', function () {

  var helper = new QuotesHelper();

  // var endpoint = 'http://localhost:3039';
  // this.http.request(endpoint + '/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20IN%20(%22' + this.symbol + '%22)&format=json&env=http://datatables.org/alltables.env')
  beforeAll(function () {
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
    // bombay.server.configureEndpoints(config);
  });

  it('does some bugs stuff', function (done) {
    expect(true).toBe(true);
    done();
  })

  var endpoint;

  it('does end-to-end ui testing', function (done) {
    const conn = bombay.server.connect();
    console.log('conn = ' + conn);
    conn.then(function () {
      return bombay.client.exists('#quote-details');
    }).then(function (results) {
      // expect(results).toBe(false);
      return bombay.client.setInputVal('GOOG', 'input');
    }).then(function (results) {
      endpoint = bombay.server.configureEndpoint('GET', 'finance/info');
      endpoint.resetPromises();
      return bombay.client.click('button#get-stock-quote', 250);
    }).then(function(clickResults) {
      return endpoint.getIncomingRequest();
    }).then(function(req) {
      var symbol = helper.parseStockSymbol(req);
      expect(symbol).toBe('GOOG');
      return endpoint.respondWithString(helper.generateResponse(symbol));
    }).then(function() {      
      endpoint.resetPromises();
      return bombay.client.exists('#quote-details');
    }).then(function (results) {
      expect(results).toBe(true);
      return bombay.client.getTextVal('#sym', 500);
    }).then(function (results) {
      expect(results).toEqual('GOOG');
      return bombay.client.getTextVal("#pct-change", 500);<commit_msg>Remove "resetPromises" from the Jasmine spec because it was somewhat artificial and now no longer required by bombay.js<commit_after>import QuotesHelper from './quotesHelper';

describe('JavaScript addition operator', function () {

  var helper = new QuotesHelper();

  // var endpoint = 'http://localhost:3039';
  // this.http.request(endpoint + '/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20IN%20(%22' + this.symbol + '%22)&format=json&env=http://datatables.org/alltables.env')
  beforeAll(function () {
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
    // bombay.server.configureEndpoints(config);
  });

  it('does some bugs stuff', function (done) {
    expect(true).toBe(true);
    done();
  })

  var endpoint;

  it('does end-to-end ui testing', function (done) {
    const conn = bombay.server.connect();
    console.log('conn = ' + conn);
    conn.then(function () {
      return bombay.client.exists('#quote-details');
    }).then(function (results) {
      // expect(results).toBe(false);
      return bombay.client.setInputVal('GOOG', 'input');
    }).then(function (results) {
      endpoint = bombay.server.configureEndpoint('GET', 'finance/info');
      return bombay.client.click('button#get-stock-quote', 250);
    }).then(function(clickResults) {
      return endpoint.getIncomingRequest();
    }).then(function(req) {
      var symbol = helper.parseStockSymbol(req);
      expect(symbol).toBe('GOOG');
      return endpoint.respondWithString(helper.generateResponse(symbol));
    }).then(function() {      
      return bombay.client.exists('#quote-details');
    }).then(function (results) {
      expect(results).toBe(true);
      return bombay.client.getTextVal('#sym', 500);
    }).then(function (results) {
      expect(results).toEqual('GOOG');
      return bombay.client.getTextVal("#pct-change", 500);
{'fraction_non_alphanumeric': 0.16648560564910375, 'fraction_numerical': 0.020097772949483977, 'mean_word_length': 3.904127829560586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4033815', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1111, 'n_words': 190}