turn on jshint in the build

This commit is contained in:
slackersoft 2014-07-25 13:31:44 -07:00
parent f95a009ffe
commit a9f3164578
2 changed files with 4 additions and 4 deletions

View File

@ -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]);
}
}

View File

@ -11,4 +11,4 @@ then
fi
fi
bundle exec rake jasmine:ci
grunt jshint && bundle exec rake jasmine:ci