joyent/node-triton#170 Integration tests fail to change company name back to original value when it contains spaces

Reviewed by: Todd Whiteman <todd.whiteman@joyent.com>
Approved by: Todd Whiteman <todd.whiteman@joyent.com>
This commit is contained in:
Trent Mick 2017-02-10 16:49:43 -08:00
parent 3dd59ab109
commit 3f4eff598c
1 changed files with 9 additions and 6 deletions

View File

@ -13,6 +13,7 @@
*/ */
var h = require('./helpers'); var h = require('./helpers');
var format = require('util').format;
var test = require('tape'); var test = require('tape');
@ -100,11 +101,13 @@ test('triton account', function (tt) {
tt.test(' triton account update companyName=<oldvalue>', writeTestOpts, tt.test(' triton account update companyName=<oldvalue>', writeTestOpts,
function (t) { function (t) {
h.triton('account update companyName=' + account.companyName || '', h.triton(
function (err, _o, _e) { format('account update companyName=\'%s\'',
if (h.ifErr(t, err)) account.companyName || ''),
return t.end(); function (err, _o, _e) {
t.end(); if (h.ifErr(t, err))
}); return t.end();
t.end();
});
}); });
}); });