Skip to content

Commit aef7287

Browse files
authoredMar 15, 2019
Merge pull request #1511 from wycats/saucelabs
Fix Saucelabs tests
2 parents 4108b83 + 684f103 commit aef7287

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed
 

‎Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ module.exports = function(grunt) {
229229
grunt.task.loadTasks('tasks');
230230

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

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

‎spec/security.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ describe('security issues', function() {
1111
});
1212

1313
it('should allow prototype properties that are not constructors', function() {
14-
class TestClass {
15-
get abc() {
14+
function TestClass() {
15+
}
16+
17+
Object.defineProperty(TestClass.prototype, 'abc', {
18+
get: function() {
1619
return 'xyz';
1720
}
18-
}
21+
22+
});
23+
1924
shouldCompileTo('{{#with this as |obj|}}{{obj.abc}}{{/with}}',
2025
new TestClass(), 'xyz');
2126
});

0 commit comments

Comments
 (0)
Please sign in to comment.