Skip to content

Commit ee5b8e3

Browse files
1 parent 3f394eb commit ee5b8e3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

document-warehouse/create-document-schema.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ async function main(
2828
*/
2929

3030
// Import from google cloud
31-
const {DocumentSchemaServiceClient} = require('@google-cloud/contentwarehouse').v1;
31+
const {DocumentSchemaServiceClient} =
32+
require('@google-cloud/contentwarehouse').v1;
3233

3334
// Create service client
3435
const serviceClient = new DocumentSchemaServiceClient();

document-warehouse/delete-document-schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ async function main(
2929
* const documentSchemaId = 'YOUR_DOCUMENT_SCHEMA_ID';
3030
*/
3131

32-
3332
// Import from google cloud
3433

35-
const {DocumentSchemaServiceClient} = require('@google-cloud/contentwarehouse').v1;
34+
const {DocumentSchemaServiceClient} =
35+
require('@google-cloud/contentwarehouse').v1;
3636

3737
// Create service client
3838
const serviceClient = new DocumentSchemaServiceClient();

document-warehouse/test/document-schema.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ describe('Create and delete document schema', () => {
5454

5555
it('should create a document schema', async () => {
5656
const output = execSync(
57-
`node create-document-schema.js ${projectNumber} ${location}`);
57+
`node create-document-schema.js ${projectNumber} ${location}`
58+
);
5859
documentSchema = JSON.parse(output)[0];
5960

6061
assert.notEqual(documentSchema, null);
@@ -63,9 +64,9 @@ describe('Create and delete document schema', () => {
6364
it('should delete a document schema', async () => {
6465
getDocumentSchemaId();
6566
const output = execSync(
66-
`node delete-document-schema.js ${projectNumber} ${location} ${documentSchemaId}`);
67+
`node delete-document-schema.js ${projectNumber} ${location} ${documentSchemaId}`
68+
);
6769

6870
assert(output.startsWith(confirmationDeleted));
6971
});
70-
7172
});

0 commit comments

Comments
 (0)