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 format = require('util').format;
 | 
			
		||||
var test = require('tape');
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -100,7 +101,9 @@ test('triton account', function (tt) {
 | 
			
		||||
 | 
			
		||||
    tt.test(' triton account update companyName=<oldvalue>', writeTestOpts,
 | 
			
		||||
            function (t) {
 | 
			
		||||
        h.triton('account update companyName=' + account.companyName || '',
 | 
			
		||||
        h.triton(
 | 
			
		||||
            format('account update companyName=\'%s\'',
 | 
			
		||||
                account.companyName || ''),
 | 
			
		||||
            function (err, _o, _e) {
 | 
			
		||||
                if (h.ifErr(t, err))
 | 
			
		||||
                    return t.end();
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user