The test descriptions now describe the expected logical outcome of the test, not the operation being done.
		
			
				
	
	
		
			25 lines
		
	
	
		
			715 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			715 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
require('../test_utils.js')()
 | 
						|
 | 
						|
describe("Module Commands", function() {
 | 
						|
    before(startMaxScale)
 | 
						|
 | 
						|
    it('call command', function() {
 | 
						|
        return doCommand('call command qlafilter log QLA')
 | 
						|
            .then(function(output) {
 | 
						|
                JSON.parse(output).meta.should.have.lengthOf(1)
 | 
						|
            })
 | 
						|
    })
 | 
						|
 | 
						|
    it('will not call command with missing parameters', function() {
 | 
						|
        return doCommand('call command qlafilter log')
 | 
						|
            .should.be.rejected
 | 
						|
    })
 | 
						|
 | 
						|
    it('will not call command with too many parameters', function() {
 | 
						|
        return doCommand('call command qlafilter log QLA too many arguments for this command')
 | 
						|
            .should.be.rejected
 | 
						|
    })
 | 
						|
 | 
						|
    after(stopMaxScale)
 | 
						|
});
 |