Skip to content

Commit 6b29cbd

Browse files
authored
Merge pull request #342 from jakerella/v2.5.0
PR for v2.5.0
2 parents a8cf78d + e541121 commit 6b29cbd

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2018-07-29 v2.5.0
2+
* Added support for ignoring test files in the automated runs; this was necessary
3+
because Browserstack does something weird with the console and it causes
4+
the logging tests to timeout
5+
* Fixed Browserstack automated runs by ignoring logging tests
6+
* Added an option to reverse the mock handler priority order (thanks @addepar-andy)
7+
18
## 2018-06-17 v2.4.0
29
* Added support for an array of status codes in mocked response (thanks @reinrl)
310
* Updated broken Codacy badge

Gruntfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ var testRunner = require('./qunit-puppeteer.js');
66
module.exports = function(grunt) {
77
'use strict';
88

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

1114
// Project configuration
1215
var config = require('./grunt-config-options');
1316
config.pkg = grunt.file.readJSON('package.json');
14-
17+
1518
grunt.initConfig(config);
1619

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

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

dist/jquery.mockjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! jQuery Mockjax
22
* A Plugin providing simple and flexible mocking of ajax requests and responses
33
*
4-
* Version: 2.4.0
4+
* Version: 2.5.0
55
* Home: https://github.com/jakerella/jquery-mockjax
66
* Copyright (c) 2018 Jordan Kasper, formerly appendTo;
77
* NOTE: This repository was taken over by Jordan Kasper (@jakerella) October, 2014

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jquery-mockjax",
33
"title": "jQuery Mockjax",
4-
"version": "2.4.0",
4+
"version": "2.5.0",
55
"main": "./src/jquery.mockjax.js",
66
"description": "The jQuery Mockjax Plugin provides a simple and extremely flexible interface for mocking or simulating ajax requests and responses.",
77
"url": "https://github.com/jakerella/jquery-mockjax",

test/build-version-urls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ module.exports = function buildVersionURLs(config, arg1, arg2, arg3, arg4) {
3030
for (i=0, l=versions.length; i<l; ++i) {
3131
if (arg1 === 'requirejs') {
3232
url = 'test/requirejs/' + file + '?jquery=' + versions[i] + '&testFiles=' + testFiles + '&ignoreFiles=' + ignoreFiles;
33-
versionUrls.push( url );
3433
if (!config.onlyPaths) { url = baseURL + '/' + url; }
34+
versionUrls.push( url );
3535
} else {
3636
url = 'test/' + file + '?jquery=' + versions[i] + '&testFiles=' + testFiles + '&ignoreFiles=' + ignoreFiles;
3737
if (!config.onlyPaths) { url = baseURL + '/' + url; }

0 commit comments

Comments
 (0)