still working to get the tests running in ie... stupid IE
This commit is contained in:
@ -303,7 +303,7 @@ YamlDoc.prototype = {
|
||||
delete args.catch;
|
||||
|
||||
var client = clientManager.get();
|
||||
var action = Object.keys(args).pop();
|
||||
var action = _.keys(args).pop();
|
||||
var clientActionName = _.map(action.split('.'), _.camelCase).join('.');
|
||||
var clientAction = this.get(clientActionName, client);
|
||||
var params = _.transform(args[action], function (params, val, name) {
|
||||
|
||||
@ -679,11 +679,11 @@ describe('Client Action runner', function () {
|
||||
opt: {
|
||||
type: {
|
||||
type: 'list',
|
||||
default: '_all'
|
||||
'default': '_all'
|
||||
},
|
||||
thing: {
|
||||
type: 'any',
|
||||
default: ''
|
||||
'default': ''
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -729,7 +729,7 @@ describe('Client Action runner', function () {
|
||||
var action = makeClientAction({
|
||||
params: {
|
||||
a: { type: 'list', required: true },
|
||||
b: { type: 'duration', default: '15m' },
|
||||
b: { type: 'duration', 'default': '15m' },
|
||||
q: { type: 'any' }
|
||||
}
|
||||
});
|
||||
|
||||
@ -178,7 +178,7 @@ describe('Connection Pool', function () {
|
||||
var pingQueue = _.shuffle(connections);
|
||||
var expectedSelection = pingQueue[pingQueue.length - 1];
|
||||
|
||||
pingQueue.forEach(function (conn) {
|
||||
_.each(pingQueue, function (conn) {
|
||||
pool.addConnection(conn);
|
||||
stub(conn, 'ping', function (params, cb) {
|
||||
if (typeof params === 'function') {
|
||||
|
||||
@ -605,7 +605,7 @@ describe('Transport Class', function () {
|
||||
});
|
||||
|
||||
|
||||
[false, 0, null].forEach(function (falsy) {
|
||||
_.each([false, 0, null], function (falsy) {
|
||||
it('skips the timeout when it is ' + falsy, function () {
|
||||
var clock = sinon.useFakeTimers();
|
||||
var tran = new Transport({});
|
||||
|
||||
Reference in New Issue
Block a user