@@ -1532,7 +1532,7 @@ describe('OrganizationsManager', () => {
15321532 const operation = organizations . postOrganizationClientGrants ( requestParameters , requestBody ) ;
15331533 const expectedResponse : GetOrganizationClientGrants200ResponseOneOfInner = <
15341534 GetOrganizationClientGrants200ResponseOneOfInner
1535- > { } ;
1535+ > { } ;
15361536 const uri = `/organizations/{id}/client-grants` . replace (
15371537 '{id}' ,
15381538 encodeURIComponent ( String ( requestParameters . id ) )
@@ -1571,7 +1571,9 @@ describe('OrganizationsManager', () => {
15711571 } ;
15721572
15731573 beforeEach ( ( ) => {
1574- request = nock ( API_URL ) . get ( `/organizations/${ data . id } /discovery-domains` ) . reply ( 200 , responseData ) ;
1574+ request = nock ( API_URL )
1575+ . get ( `/organizations/${ data . id } /discovery-domains` )
1576+ . reply ( 200 , responseData ) ;
15751577 } ) ;
15761578
15771579 it ( 'should return a promise when no callback is given' , ( done ) => {
@@ -1652,7 +1654,10 @@ describe('OrganizationsManager', () => {
16521654 } ) ;
16531655
16541656 it ( 'should return a promise if no callback is given' , ( done ) => {
1655- organizations . getDiscoveryDomain ( data ) . then ( done . bind ( null , null ) ) . catch ( done . bind ( null , null ) ) ;
1657+ organizations
1658+ . getDiscoveryDomain ( data )
1659+ . then ( done . bind ( null , null ) )
1660+ . catch ( done . bind ( null , null ) ) ;
16561661 } ) ;
16571662
16581663 it ( 'should perform a GET request to /api/v2/organizations/:id/discovery-domains/:discovery_domain_id' , ( done ) => {
@@ -1690,11 +1695,15 @@ describe('OrganizationsManager', () => {
16901695 } ) ;
16911696
16921697 it ( 'should return error when id is not sent' , async ( ) => {
1693- await expect ( organizations . getDiscoveryDomain ( { discovery_domain_id : 'ord_123' } as any ) ) . rejects . toThrow ( RequiredError ) ;
1698+ await expect (
1699+ organizations . getDiscoveryDomain ( { discovery_domain_id : 'ord_123' } as any )
1700+ ) . rejects . toThrow ( RequiredError ) ;
16941701 } ) ;
16951702
16961703 it ( 'should return error when discovery_domain_id is not sent' , async ( ) => {
1697- await expect ( organizations . getDiscoveryDomain ( { id : 'org_123' } as any ) ) . rejects . toThrow ( RequiredError ) ;
1704+ await expect ( organizations . getDiscoveryDomain ( { id : 'org_123' } as any ) ) . rejects . toThrow (
1705+ RequiredError
1706+ ) ;
16981707 } ) ;
16991708 } ) ;
17001709
@@ -1724,7 +1733,10 @@ describe('OrganizationsManager', () => {
17241733 } ) ;
17251734
17261735 it ( 'should return a promise if no callback is given' , ( done ) => {
1727- organizations . createDiscoveryDomain ( data , body ) . then ( done . bind ( null , null ) ) . catch ( done . bind ( null , null ) ) ;
1736+ organizations
1737+ . createDiscoveryDomain ( data , body )
1738+ . then ( done . bind ( null , null ) )
1739+ . catch ( done . bind ( null , null ) ) ;
17281740 } ) ;
17291741
17301742 it ( 'should pass any errors to the promise catch handler' , ( done ) => {
@@ -1746,7 +1758,9 @@ describe('OrganizationsManager', () => {
17461758 } ) ;
17471759
17481760 it ( 'should return error when id is not sent' , async ( ) => {
1749- await expect ( organizations . createDiscoveryDomain ( { } as any , body ) ) . rejects . toThrow ( RequiredError ) ;
1761+ await expect ( organizations . createDiscoveryDomain ( { } as any , body ) ) . rejects . toThrow (
1762+ RequiredError
1763+ ) ;
17501764 } ) ;
17511765
17521766 it ( 'should pass the data in the body of the request' , ( done ) => {
@@ -1800,7 +1814,10 @@ describe('OrganizationsManager', () => {
18001814 } ) ;
18011815
18021816 it ( 'should return a promise if no callback is given' , ( done ) => {
1803- organizations . updateDiscoveryDomain ( data , body ) . then ( done . bind ( null , null ) ) . catch ( done . bind ( null , null ) ) ;
1817+ organizations
1818+ . updateDiscoveryDomain ( data , body )
1819+ . then ( done . bind ( null , null ) )
1820+ . catch ( done . bind ( null , null ) ) ;
18041821 } ) ;
18051822
18061823 it ( 'should pass any errors to the promise catch handler' , ( done ) => {
@@ -1824,11 +1841,15 @@ describe('OrganizationsManager', () => {
18241841 } ) ;
18251842
18261843 it ( 'should return error when id is not sent' , async ( ) => {
1827- await expect ( organizations . updateDiscoveryDomain ( { discovery_domain_id : 'ord_123' } as any , body ) ) . rejects . toThrow ( RequiredError ) ;
1844+ await expect (
1845+ organizations . updateDiscoveryDomain ( { discovery_domain_id : 'ord_123' } as any , body )
1846+ ) . rejects . toThrow ( RequiredError ) ;
18281847 } ) ;
18291848
18301849 it ( 'should return error when discovery_domain_id is not sent' , async ( ) => {
1831- await expect ( organizations . updateDiscoveryDomain ( { id : 'org_123' } as any , body ) ) . rejects . toThrow ( RequiredError ) ;
1850+ await expect (
1851+ organizations . updateDiscoveryDomain ( { id : 'org_123' } as any , body )
1852+ ) . rejects . toThrow ( RequiredError ) ;
18321853 } ) ;
18331854
18341855 it ( 'should pass the data in the body of the request' , ( done ) => {
@@ -1872,7 +1893,9 @@ describe('OrganizationsManager', () => {
18721893 } ) ;
18731894
18741895 it ( 'should validate empty id' , async ( ) => {
1875- await expect ( organizations . deleteDiscoveryDomain ( { discovery_domain_id : 'ord_123' } as any ) ) . rejects . toThrow ( RequiredError ) ;
1896+ await expect (
1897+ organizations . deleteDiscoveryDomain ( { discovery_domain_id : 'ord_123' } as any )
1898+ ) . rejects . toThrow ( RequiredError ) ;
18761899 } ) ;
18771900
18781901 it ( 'should return a promise if no callback is given' , ( done ) => {
@@ -1900,7 +1923,9 @@ describe('OrganizationsManager', () => {
19001923 } ) ;
19011924
19021925 it ( 'should return error when discovery_domain_id is not sent' , async ( ) => {
1903- await expect ( organizations . deleteDiscoveryDomain ( { id : 'org_123' } as any ) ) . rejects . toThrow ( RequiredError ) ;
1926+ await expect ( organizations . deleteDiscoveryDomain ( { id : 'org_123' } as any ) ) . rejects . toThrow (
1927+ RequiredError
1928+ ) ;
19041929 } ) ;
19051930
19061931 it ( 'should include the token in the Authorization header' , ( done ) => {
0 commit comments