{"action":"opened","issue":{"url":"https://api.github.com/repos/salesforce-marketingcloud/FuelSDK-Node-SOAP/issues/102","repository_url":"https://api.github.com/repos/salesforce-marketingcloud/FuelSDK-Node-SOAP","labels_url":"https://api.github.com/repos/salesforce-marketingcloud/FuelSDK-Node-SOAP/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/salesforce-marketingcloud/FuelSDK-Node-SOAP/issues/102/comments","events_url":"https://api.github.com/repos/salesforce-marketingcloud/FuelSDK-Node-SOAP/issues/102/events","html_url":"https://github.com/salesforce-marketingcloud/FuelSDK-Node-SOAP/issues/102","id":158714071,"number":102,"title":"Allow for use without \"new\" keyword","user":{"login":"vernak2539","id":521270,"avatar_url":"https://avatars.githubusercontent.com/u/521270?v=3","gravatar_id":"","url":"https://api.github.com/users/vernak2539","html_url":"https://github.com/vernak2539","followers_url":"https://api.github.com/users/vernak2539/followers","following_url":"https://api.github.com/users/vernak2539/following{/other_user}","gists_url":"https://api.github.com/users/vernak2539/gists{/gist_id}","starred_url":"https://api.github.com/users/vernak2539/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vernak2539/subscriptions","organizations_url":"https://api.github.com/users/vernak2539/orgs","repos_url":"https://api.github.com/users/vernak2539/repos","events_url":"https://api.github.com/users/vernak2539/events{/privacy}","received_events_url":"https://api.github.com/users/vernak2539/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-06T16:03:42Z","updated_at":"2016-06-06T16:03:42Z","closed_at":null,"body":"**Overview**\r\nSome people forget to use the `new` keyword when instantiating an object. All the Fuel Node.js SDKs used to require the use of `new`, but in order to be more flexible, we want to allow for use without `new`.\r\n\r\n**Test to get passing**\r\nThis test should go in `./test/specs/general-tests.js`\r\n\r\n```js\r\nit('should not need to use \"new\" when instantiating', function() {\r\n\t// Arrange\r\n\tvar nonConstructorFuelSOAP= require('../../lib/fuel-soap');\r\n\tvar options = {\r\n\t\tauth: {\r\n\t\t\tclientId: '<test>'\r\n\t\t\t, clientSecret: '<test>'\r\n\t\t}\r\n\t};\r\n\r\n\t// Act\r\n\tvar client = nonConstructorFuelSOAP(options);\r\n\r\n\t// Assert\r\n\texpect(client.requestOptions.method).to.equal('POST');\r\n});\r\n```"}}
{"actor":{"display_login":"vernak2539"}}