Skip to content

Commit

Permalink
Merge pull request #342 from jakerella/v2.5.0
Browse files Browse the repository at this point in the history
PR for v2.5.0
  • Loading branch information
jakerella authored Jul 29, 2018
2 parents a8cf78d + e541121 commit 6b29cbd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2018-07-29 v2.5.0
* Added support for ignoring test files in the automated runs; this was necessary
because Browserstack does something weird with the console and it causes
the logging tests to timeout
* Fixed Browserstack automated runs by ignoring logging tests
* Added an option to reverse the mock handler priority order (thanks @addepar-andy)

## 2018-06-17 v2.4.0
* Added support for an array of status codes in mocked response (thanks @reinrl)
* Updated broken Codacy badge
Expand Down
7 changes: 5 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ var testRunner = require('./qunit-puppeteer.js');
module.exports = function(grunt) {
'use strict';

/* jshint ignore:start */
/* This is used in an await statement, which apaprently JSHint doesn't like */
var PORT = 4000;
/* jshint ignore:end */

// Project configuration
var config = require('./grunt-config-options');
config.pkg = grunt.file.readJSON('package.json');

grunt.initConfig(config);

require('load-grunt-tasks')(grunt);
Expand All @@ -24,7 +27,7 @@ module.exports = function(grunt) {
grunt.registerTask('test', 'Executes QUnit tests with all supported jQuery versions', async function() {
/* jshint ignore:end */
var done = this.async();
var i, l;
var i;

var versionUrls = require('./test/build-version-urls')(grunt.config, arguments[0], arguments[1], arguments[2]);

Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.mockjax.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*! jQuery Mockjax
* A Plugin providing simple and flexible mocking of ajax requests and responses
*
* Version: 2.4.0
* Version: 2.5.0
* Home: https://github.com/jakerella/jquery-mockjax
* Copyright (c) 2018 Jordan Kasper, formerly appendTo;
* NOTE: This repository was taken over by Jordan Kasper (@jakerella) October, 2014
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery-mockjax",
"title": "jQuery Mockjax",
"version": "2.4.0",
"version": "2.5.0",
"main": "./src/jquery.mockjax.js",
"description": "The jQuery Mockjax Plugin provides a simple and extremely flexible interface for mocking or simulating ajax requests and responses.",
"url": "https://github.com/jakerella/jquery-mockjax",
Expand Down
2 changes: 1 addition & 1 deletion test/build-version-urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ module.exports = function buildVersionURLs(config, arg1, arg2, arg3, arg4) {
for (i=0, l=versions.length; i<l; ++i) {
if (arg1 === 'requirejs') {
url = 'test/requirejs/' + file + '?jquery=' + versions[i] + '&testFiles=' + testFiles + '&ignoreFiles=' + ignoreFiles;
versionUrls.push( url );
if (!config.onlyPaths) { url = baseURL + '/' + url; }
versionUrls.push( url );
} else {
url = 'test/' + file + '?jquery=' + versions[i] + '&testFiles=' + testFiles + '&ignoreFiles=' + ignoreFiles;
if (!config.onlyPaths) { url = baseURL + '/' + url; }
Expand Down

0 comments on commit 6b29cbd

Please sign in to comment.