<commit_before>var helpers = require('./global-setup')
var path = require('path')

var describe = global.describe
var it = global.it
var beforeEach = global.beforeEach
var afterEach = global.afterEach

describe('when nodeIntegration is set to false', function () {
  helpers.setupTimeout(this)

  var app = null

  beforeEach(function () {
    return helpers.startApplication({
      args: [path.join(__dirname, 'fixtures', 'no-node-integration')]
    }).then(function (startedApp) { app = startedApp })
  })

  afterEach(function () {
    return helpers.stopApplication(app)
  })

  it('does not throw an error', function () {
    return app.client.getTitle().should.eventually.equal('no node integration')
      .getText('body').should.eventually.equal('no node integration')
  })
})<commit_msg>Assert helper properties are undefined<commit_after>var helpers = require('./global-setup')
var path = require('path')
var expect = require('chai').expect

var describe = global.describe
var it = global.it
var beforeEach = global.beforeEach
var afterEach = global.afterEach

describe('when nodeIntegration is set to false', function () {
  helpers.setupTimeout(this)

  var app = null

  beforeEach(function () {
    return helpers.startApplication({
      args: [path.join(__dirname, 'fixtures', 'no-node-integration')]
    }).then(function (startedApp) { app = startedApp })
  })

  afterEach(function () {
    return helpers.stopApplication(app)
  })

  it('does not throw an error', function () {
    return app.client.getTitle().should.eventually.equal('no node integration')
      .getText('body').should.eventually.equal('no node integration')
  })

  it('does not add Electron API helper methods', function () {
    expect(app.browserWindow).to.be.undefined
    expect(app.webContents).to.be.undefined
    expect(app.mainProcess).to.be.undefined
    expect(app.rendererProcess).to.be.undefined
  })
})
{'fraction_non_alphanumeric': 0.13693599160545644, 'fraction_numerical': 0.0, 'mean_word_length': 4.267955801104972, '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': '6179962', 'n_tokens_mistral': 565, 'n_tokens_neox': 547, 'n_words': 131}