Commit 6ad695da916a2a5e70971c7f5edad9343f0e4f58

Authored by Leonardo Merlin
1 parent 21d025ef

Wrap with IIFE

Showing 1 changed file with 27 additions and 22 deletions   Show diff stats
protractor.conf.js
1 -'use strict'; 1 +/* globals require, exports*/
  2 +(function(){
  3 + 'use strict';
2 4
3 -var paths = require('./.yo-rc.json')['generator-gulp-angular'].props.paths; 5 + var paths = require('./.yo-rc.json')['generator-gulp-angular'].props.paths;
4 6
5 -// An example configuration file.  
6 -exports.config = {  
7 - // The address of a running selenium server.  
8 - //seleniumAddress: 'http://localhost:4444/wd/hub',  
9 - //seleniumServerJar: deprecated, this should be set on node_modules/protractor/config.json 7 + // An example configuration file.
  8 + exports.config = {
  9 + // The address of a running selenium server.
  10 + //seleniumAddress: 'http://localhost:4444/wd/hub',
  11 + //seleniumServerJar: deprecated, this should be set on node_modules/protractor/config.json
10 12
11 - // Capabilities to be passed to the webdriver instance.  
12 - capabilities: {  
13 - 'browserName': 'chrome'  
14 - },  
15 -  
16 - baseUrl: 'http://localhost:3000', 13 + // Capabilities to be passed to the webdriver instance.
  14 + capabilities: {
  15 + 'browserName': 'firefox'
  16 + },
17 17
18 - // Spec patterns are relative to the current working directly when  
19 - // protractor is called.  
20 - specs: [paths.e2e + '/**/*.js'], 18 + // chromeOnly: true,
21 19
22 - // Options to be passed to Jasmine-node.  
23 - jasmineNodeOpts: {  
24 - showColors: true,  
25 - defaultTimeoutInterval: 30000  
26 - }  
27 -}; 20 + baseUrl: 'http://localhost:3000',
  21 +
  22 + // Spec patterns are relative to the current working directly when
  23 + // protractor is called.
  24 + specs: [paths.e2e + '/**/*.js'],
  25 +
  26 + // Options to be passed to Jasmine-node.
  27 + jasmineNodeOpts: {
  28 + showColors: true,
  29 + defaultTimeoutInterval: 30000
  30 + }
  31 + };
  32 +})();