Skip to content

Commit

Permalink
Merge pull request #12831 from emberjs/fix-jshint
Browse files Browse the repository at this point in the history
Fix jshint warnings
  • Loading branch information
trek committed Jan 18, 2016
2 parents 7f5bcd5 + f8d5517 commit f2adc4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 3 additions & 1 deletion packages/ember-htmlbars/tests/attr_nodes/sanitized_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ var badTags = [
];

for (var i = 0, l = badTags.length; i < l; i++) {
/* jshint -W083 */
(function() {
var subject = badTags[i];

Expand Down Expand Up @@ -118,6 +119,7 @@ for (var i = 0, l = badTags.length; i < l; i++) {
'unsafe:javascript://example.com',
'attribute is output');
});
})(); //jshint ignore:line
})();
/* jshint +W083 */
}
// jscs:enable disallowTrailingWhitespace
2 changes: 0 additions & 2 deletions packages/ember-runtime/lib/ext/rsvp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* globals RSVP:true */

import Ember from 'ember-metal/core';
import require, { has } from 'require';
import { assert } from 'ember-metal/debug';
Expand Down
10 changes: 4 additions & 6 deletions packages/ember-runtime/tests/ext/rsvp_test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global Promise:true */
import Ember from 'ember-metal/core';
import run from 'ember-metal/run_loop';
import RSVP from 'ember-runtime/ext/rsvp';
Expand All @@ -22,7 +21,6 @@ QUnit.test('Ensure that errors thrown from within a promise are sent to the cons

var asyncStarted = 0;
var asyncEnded = 0;
var Promise = RSVP.Promise;

var EmberTest;
var EmberTesting;
Expand Down Expand Up @@ -64,7 +62,7 @@ QUnit.test('given `Ember.testing = true`, correctly informs the test suite about
equal(asyncStarted, 0);
equal(asyncEnded, 0);

var user = Promise.resolve({
var user = RSVP.Promise.resolve({
name: 'tomster'
});

Expand All @@ -77,15 +75,15 @@ QUnit.test('given `Ember.testing = true`, correctly informs the test suite about

equal(user.name, 'tomster');

return Promise.resolve(1).then(function() {
return RSVP.Promise.resolve(1).then(function() {
equal(asyncStarted, 1);
equal(asyncEnded, 1);
});
}).then(function() {
equal(asyncStarted, 1);
equal(asyncEnded, 1);

return new Promise(function(resolve) {
return new RSVP.Promise(function(resolve) {
QUnit.stop(); // raw async, we must inform the test framework manually
setTimeout(function() {
QUnit.start(); // raw async, we must inform the test framework manually
Expand Down Expand Up @@ -270,7 +268,7 @@ QUnit.test('handled in the same microTask Queue flush do to data locality', func
// it depends on the locality of `user#1`
var store = {
find() {
return Promise.resolve(1);
return RSVP.Promise.resolve(1);
}
};

Expand Down

0 comments on commit f2adc4f

Please sign in to comment.