@@ -19,24 +19,27 @@ import * as nock from 'nock';
19
19
import { URL } from 'url' ;
20
20
import * as disclaimer from '../src/generator/disclaimer' ;
21
21
22
- const mockResponse = [
22
+ const mockResponse = ` [
23
23
{
24
- name : 'asset' ,
25
- name_pretty : 'Asset Inventory' ,
26
- product_documentation :
27
- 'https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview' ,
28
- client_documentation : 'https://googleapis.dev/nodejs/asset/latest' ,
29
- issue_tracker : 'https://issuetracker.google.com/savedsearches/559757' ,
30
- release_level : 'ga' ,
31
- language : 'nodejs' ,
32
- repo : 'googleapis/nodejs-asset' ,
33
- distribution_name : '@google-cloud/asset' ,
34
- api_id : 'cloudasset.googleapis.com' ,
35
- requires_billing : true ,
36
- support_documentation :
37
- 'https://cloud.google.com/resource-manager/docs/getting-support' ,
38
- } ,
39
- ] ;
24
+ "name": "cloudasset",
25
+ "name_pretty": "Asset Inventory",
26
+ "product_documentation": "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview",
27
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/asset/latest",
28
+ "issue_tracker": "https://issuetracker.google.com/savedsearches/559757",
29
+ "release_level": "stable",
30
+ "language": "nodejs",
31
+ "repo": "googleapis/google-cloud-node",
32
+ "distribution_name": "@google-cloud/asset",
33
+ "api_id": "cloudasset.googleapis.com",
34
+ "requires_billing": true,
35
+ "default_version": "v1",
36
+ "codeowner_team": "@googleapis/cloud-asset-team",
37
+ "api_shortname": "cloudasset",
38
+ "library_type": "GAPIC_AUTO",
39
+ "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-asset",
40
+ "support_documentation": "https://cloud.google.com/resource-manager/docs/getting-support"
41
+ }
42
+ ]` ;
40
43
41
44
nock . disableNetConnect ( ) ;
42
45
@@ -46,7 +49,7 @@ describe(__filename, () => {
46
49
nock . cleanAll ( ) ;
47
50
sandbox . restore ( ) ;
48
51
} ) ;
49
- it ( 'should update disclaimers' , async ( ) => {
52
+ it . only ( 'should update disclaimers' , async ( ) => {
50
53
const url = new URL ( disclaimer . libraryListUrl ) ;
51
54
const scope = nock ( url . origin ) . get ( url . pathname ) . reply ( 200 , mockResponse ) ;
52
55
const expected = [
0 commit comments