File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ async function quickstart(
107107 return {
108108 templateName : createdTemplate . name ,
109109 userPromptSanitizeResponse,
110- modelSanitizeResponse
110+ modelSanitizeResponse,
111111 } ;
112112 // [END modelarmor_quickstart]
113113}
Original file line number Diff line number Diff line change 1414
1515'use strict' ;
1616
17- const cp = require ( 'child_process' ) ;
1817const { v4 : uuidv4 } = require ( 'uuid' ) ;
1918const { ModelArmorClient} = require ( '@google-cloud/modelarmor' ) . v1 ;
2019
@@ -27,8 +26,6 @@ const options = {
2726const client = new ModelArmorClient ( options ) ;
2827const templateIdPrefix = `test-template-${ uuidv4 ( ) . substring ( 0 , 8 ) } ` ;
2928
30- const execSync = cmd => cp . execSync ( cmd , { encoding : 'utf-8' } ) ;
31-
3229describe ( 'Model Armor tests' , ( ) => {
3330 const templatesToDelete = [ ] ;
3431
@@ -54,11 +51,7 @@ describe('Model Armor tests', () => {
5451 const quickstart = require ( '../snippets/quickstart' ) ;
5552 const testQuickstartTemplateId = `${ templateIdPrefix } -quickstart` ;
5653
57- await quickstart (
58- projectId ,
59- locationId ,
60- testQuickstartTemplateId
61- ) ;
54+ await quickstart ( projectId , locationId , testQuickstartTemplateId ) ;
6255
6356 templatesToDelete . push (
6457 `projects/${ projectId } /locations/${ locationId } /templates/${ testQuickstartTemplateId } `
You can’t perform that action at this time.
0 commit comments