Skip to content

Commit

Permalink
fix(test): change protractor.getInstance to browser
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcody committed Jun 20, 2015
1 parent 8df9992 commit c7f6c36
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var config = protractor.getInstance().params;<% if (filters.mongooseModels) { %>
var config = browser.params;<% if (filters.mongooseModels) { %>
var UserModel = require(config.serverConfig.root + '/server/api/user/user.model');<% } %><% if (filters.sequelizeModels) { %>
var UserModel = require(config.serverConfig.root + '/server/sqldb').User;<% } %>

Expand Down
2 changes: 1 addition & 1 deletion app/templates/e2e/account(auth)/login/login.spec(mocha).js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var config = protractor.getInstance().params;<% if (filters.mongooseModels) { %>
var config = browser.params;<% if (filters.mongooseModels) { %>
var UserModel = require(config.serverConfig.root + '/server/api/user/user.model');<% } %><% if (filters.sequelizeModels) { %>
var UserModel = require(config.serverConfig.root + '/server/sqldb').User;<% } %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var config = protractor.getInstance().params;<% if (filters.mongooseModels) { %>
var config = browser.params;<% if (filters.mongooseModels) { %>
var UserModel = require(config.serverConfig.root + '/server/api/user/user.model');<% } %><% if (filters.sequelizeModels) { %>
var UserModel = require(config.serverConfig.root + '/server/sqldb').User;<% } %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var config = protractor.getInstance().params;<% if (filters.mongooseModels) { %>
var config = browser.params;<% if (filters.mongooseModels) { %>
var UserModel = require(config.serverConfig.root + '/server/api/user/user.model');<% } %><% if (filters.sequelizeModels) { %>
var UserModel = require(config.serverConfig.root + '/server/sqldb').User;<% } %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var config = protractor.getInstance().params;<% if (filters.mongooseModels) { %>
var config = browser.params;<% if (filters.mongooseModels) { %>
var UserModel = require(config.serverConfig.root + '/server/api/user/user.model');<% } %><% if (filters.sequelizeModels) { %>
var UserModel = require(config.serverConfig.root + '/server/sqldb').User;<% } %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var config = protractor.getInstance().params;<% if (filters.mongooseModels) { %>
var config = browser.params;<% if (filters.mongooseModels) { %>
var UserModel = require(config.serverConfig.root + '/server/api/user/user.model');<% } %><% if (filters.sequelizeModels) { %>
var UserModel = require(config.serverConfig.root + '/server/sqldb').User;<% } %>

Expand Down

0 comments on commit c7f6c36

Please sign in to comment.