turn on jshint in the build
This commit is contained in:
parent
f95a009ffe
commit
a9f3164578
@ -117,7 +117,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
var defaults = [
|
||||
{
|
||||
test: function(xhr) {
|
||||
return /^application\/json/.test(xhr.contentType());
|
||||
return (/^application\/json/).test(xhr.contentType());
|
||||
},
|
||||
parse: function jsonParser(paramString) {
|
||||
return JSON.parse(paramString);
|
||||
@ -304,7 +304,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
};
|
||||
|
||||
this.filter = function(url_to_match) {
|
||||
if (requests.length == 0) return [];
|
||||
if (requests.length === 0) { return []; }
|
||||
var matching_requests = [];
|
||||
|
||||
for (var i = 0; i < requests.length; i++) {
|
||||
@ -315,7 +315,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
url_to_match(requests[i])) {
|
||||
matching_requests.push(requests[i]);
|
||||
} else {
|
||||
if (requests[i].url == url_to_match) {
|
||||
if (requests[i].url === url_to_match) {
|
||||
matching_requests.push(requests[i]);
|
||||
}
|
||||
}
|
||||
|
@ -11,4 +11,4 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
bundle exec rake jasmine:ci
|
||||
grunt jshint && bundle exec rake jasmine:ci
|
||||
|
Loading…
Reference in New Issue
Block a user