Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Nov 13, 2019
1 parent 4d19284 commit abe65bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion synth.metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"updateTime": "2019-11-13T22:41:44.289221Z",
"updateTime": "2019-11-13T22:57:28.867681Z",
"sources": [
{
"git": {
Expand Down
4 changes: 4 additions & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
templates = common_templates.node_library(source_location='build/src')
s.copy(templates)

# Fix system tests
# TODO: must be a feature of pack-n-play
s.replace('system-test/fixtures/sample/src/index.*', "'texttospeech'", "'@google-cloud/text-to-speech'")

# Node.js specific cleanup
subprocess.run(['npm', 'install'])
subprocess.run(['npm', 'run', 'fix'])
Expand Down
2 changes: 1 addition & 1 deletion system-test/fixtures/sample/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

const texttospeech = require('texttospeech');
const texttospeech = require('@google-cloud/text-to-speech');

function main() {
const textToSpeechClient = new texttospeech.TextToSpeechClient();
Expand Down
2 changes: 1 addition & 1 deletion system-test/fixtures/sample/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

import {TextToSpeechClient} from 'texttospeech';
import {TextToSpeechClient} from '@google-cloud/text-to-speech';

function main() {
const textToSpeechClient = new TextToSpeechClient();
Expand Down

0 comments on commit abe65bf

Please sign in to comment.