Skip to content

Commit

Permalink
Fix build by satisfying jshint indentation (#931)
Browse files Browse the repository at this point in the history
I also got this #914 (comment)
when running npm test and build failed. Now it passes.
  • Loading branch information
pihvi authored and herom committed May 29, 2017
1 parent 1a440a0 commit 18c2790
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions test/sequence-test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';

var fs = require('fs'),
soap = require('..'),
http = require('http'),
assert = require('assert'),
_ = require('lodash'),
sinon = require('sinon'),
wsdl = require('../lib/wsdl');
soap = require('..'),
http = require('http'),
assert = require('assert'),
_ = require('lodash'),
sinon = require('sinon'),
wsdl = require('../lib/wsdl');

var sequencedRequest = {
'url': 'https://github.com',
Expand All @@ -30,26 +30,26 @@ var notSequencedRequest = {

describe('Method args sequence', function() {

it('check if method required sequence args', function(done) {
soap.createClient(__dirname + '/wsdl/rpcexample.wsdl', { suffix: '', options: {} }, function(err, client) {
assert.ok(client);
assert.ok(client._isSequenceRequired('pullFile') === false);
it('check if method required sequence args', function(done) {
soap.createClient(__dirname + '/wsdl/rpcexample.wsdl', {suffix: '', options: {}}, function(err, client) {
assert.ok(client);
assert.ok(client._isSequenceRequired('pullFile') === false);

soap.createClient(__dirname + '/wsdl/sequnceexmple.wsdl', { suffix: '', options: {} }, function(err, client) {
assert.ok(client);
assert.ok(client._isSequenceRequired('pullFile') === true);
done();
});
soap.createClient(__dirname + '/wsdl/sequnceexmple.wsdl', {suffix: '', options: {}}, function(err, client) {
assert.ok(client);
assert.ok(client._isSequenceRequired('pullFile') === true);
done();
});
});

it('check sort args on sequence required method', function(done) {
soap.createClient(__dirname + '/wsdl/sequnceexmple.wsdl', { suffix: '', options: {} }, function(err, client) {
assert.ok(client);
var sequencedMethodRequest = client._setSequenceArgs(client._getArgsScheme('pullFile'), notSequencedRequest);
assert.ok(JSON.stringify(sequencedMethodRequest) === JSON.stringify(sequencedRequest));
done();
});
});

it('check sort args on sequence required method', function(done) {
soap.createClient(__dirname + '/wsdl/sequnceexmple.wsdl', {suffix: '', options: {}}, function(err, client) {
assert.ok(client);
var sequencedMethodRequest = client._setSequenceArgs(client._getArgsScheme('pullFile'), notSequencedRequest);
assert.ok(JSON.stringify(sequencedMethodRequest) === JSON.stringify(sequencedRequest));
done();
});
});

});
});

0 comments on commit 18c2790

Please sign in to comment.