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:
parent
3dd59ab109
commit
3f4eff598c
@ -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();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user