Merge pull request #1511 from wycats/saucelabs

Fix Saucelabs tests
This commit is contained in:
Nils Knappmeier
2019-03-15 23:16:23 +01:00
committed by GitHub
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -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']);
+8 -3
View File
@@ -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');
});