still working to get the tests running in ie... stupid IE

This commit is contained in:
Spencer Alger
2013-12-23 17:31:37 -07:00
parent 2b3734a081
commit a77b2be1f2
7 changed files with 20 additions and 11 deletions

View File

@ -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) {

View File

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

View File

@ -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') {

View File

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