Skip to content

Commit

Permalink
Merge pull request #1511 from wycats/saucelabs
Browse files Browse the repository at this point in the history
Fix Saucelabs tests
  • Loading branch information
nknapp committed Mar 15, 2019
2 parents 4108b83 + 684f103 commit aef7287
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Expand Up @@ -229,7 +229,7 @@ module.exports = function(grunt) {
grunt.task.loadTasks('tasks');

grunt.registerTask('bench', ['metrics']);
grunt.registerTask('sauce', [] /* process.env.SAUCE_USERNAME ? ['tests', 'connect', 'saucelabs-mocha'] : [] */);
grunt.registerTask('sauce', process.env.SAUCE_USERNAME ? ['tests', 'connect', 'saucelabs-mocha'] : []);

grunt.registerTask('travis', process.env.PUBLISH ? ['default', 'sauce', 'metrics', 'publish:latest'] : ['default']);

Expand Down
11 changes: 8 additions & 3 deletions spec/security.js
Expand Up @@ -11,11 +11,16 @@ describe('security issues', function() {
});

it('should allow prototype properties that are not constructors', function() {
class TestClass {
get abc() {
function TestClass() {
}

Object.defineProperty(TestClass.prototype, 'abc', {
get: function() {
return 'xyz';
}
}

});

shouldCompileTo('{{#with this as |obj|}}{{obj.abc}}{{/with}}',
new TestClass(), 'xyz');
});
Expand Down

0 comments on commit aef7287

Please sign in to comment.