Skip to content

Commit 46da50c

Browse files
authored
Merge pull request #189 from avadev/fix-lint-errors
fixing lint errors
2 parents ffe9e03 + 77c331b commit 46da50c

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

lib/AvaTaxClient.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class AvaTaxClient {
8585
},
8686
body: JSON.stringify(payload)
8787
})).then(res => {
88-
var contentType = res.headers._headers['content-type'][0];
88+
var contentType = res.headers._headers['content-type'][0];
8989

9090
if (contentType === 'application/vnd.ms-excel' || contentType === 'text/csv') {
9191
return res;
@@ -763,7 +763,7 @@ export default class AvaTaxClient {
763763
*
764764
* Marks the in progress batch identified by this URL as cancelled.
765765
*
766-
* Only JSON batches can be cancelled. If you attempt to cancel a file batch, you will receive an error message.
766+
* Only JSON batches can be cancelled.If you attempt to cancel a file batch, you will receive an error message.
767767
*
768768
* Only in progress batches can be cancelled. If you attempt to cancel a batch that its status is not Waiting or Processing, you will receive an error message.
769769
* Cancelling an in progress batch does not delete any transactions that were created before the cancellation.
@@ -2260,7 +2260,7 @@ export default class AvaTaxClient {
22602260
*
22612261
* @return FetchResult
22622262
*/
2263-
listMrsCompanies({ } = {}) {
2263+
listMrsCompanies() {
22642264
var path = this.buildUrl({
22652265
url: `/api/v2/companies/mrs`,
22662266
parameters: {}
@@ -3658,7 +3658,7 @@ export default class AvaTaxClient {
36583658
*
36593659
* @return FetchResult
36603660
*/
3661-
listCrossBorderSections({ } = {}) {
3661+
listCrossBorderSections() {
36623662
var path = this.buildUrl({
36633663
url: `/api/v2/definitions/crossborder/sections`,
36643664
parameters: {}
@@ -11201,7 +11201,7 @@ export default class AvaTaxClient {
1120111201
*
1120211202
* @return FetchResult
1120311203
*/
11204-
listMySubscriptions({ } = {}) {
11204+
listMySubscriptions() {
1120511205
var path = this.buildUrl({
1120611206
url: `/api/v2/utilities/subscriptions`,
1120711207
parameters: {}
@@ -11236,7 +11236,7 @@ export default class AvaTaxClient {
1123611236
*
1123711237
* @return object
1123811238
*/
11239-
ping({ } = {}) {
11239+
ping() {
1124011240
var path = this.buildUrl({
1124111241
url: `/api/v2/utilities/ping`,
1124211242
parameters: {}

test/address.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ describe('Address integration test', () => {
4141
expect(res.address.line1).toEqual('1510 Foster Circle');
4242
});
4343
});
44+
45+
it('should list cross border sections', () => {
46+
return client.listCrossBorderSections().then(res => {
47+
expect(res).toBeDefined();
48+
});
49+
});
4450
});
4551

4652
describe('Address resolve Tests', () => {

0 commit comments

Comments
 (0)