Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Cleaned up Test File for Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Frater committed Jul 17, 2018
1 parent 40d9927 commit 933d4a0
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions samples/system-test/betaFeatures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,61 +16,11 @@
'use strict';

const path = require(`path`);
const storage = require(`@google-cloud/storage`)();
const test = require(`ava`);
const uuid = require(`uuid`);

const {runAsync} = require(`@google-cloud/nodejs-repo-tools`);

const bucketName = `nodejs-docs-samples-test-${uuid.v4()}`;
const cmd = `node betaFeatures.js`;
const cwd = path.join(__dirname, `..`);

const text = `This is a test- this is also a test`;

//audio Files & URI paths for Test
// const filename = `audio.raw`;
// const filepath = path.join(__dirname, `../resources/${filename}`);
// const stereoFileName = `commercial_stereo.wav`;
// const monoFileName = `commercial_mono.wav`;
// const monoFilePath = path.join(
// __dirname,
// `../samples/resources/${monoFileName}`
// );
// const stereoFilePath = path.join(
// __dirname,
// `../samples/resources/${stereoFileName}`
// );
// const multiLanguageFileName = `multi.wav`;
// const multiLanguageFile = path.join(
// __dirname,
// `../samples/resources/${multiLanguageFileName}`
// );
// const multiLangURI = `gs://cloud-samples-tests/speech/multi.wav`;
// const defaultURI = 'gs://cloud-samples-tests/speech/commercial_mono.wav';
// const defaultStereoURI =
// 'gs://cloud-samples-tests/speech/commercial_stereo.wav';
// const gnome = `/Users/cfrater/SPEECH3/nodejs-speech/samples/resources/Google_Gnome.wav`;

// const Brooklyn = 'brooklyn.flac';
// const BrooklynFilePath = path.join(
// __dirname,
// `../samples/resources/${Brooklyn}`
// );
// const BrooklynURI = 'gs://cloud-samples-tests/speech/brooklyn.flac';

// test.before(async () => {
// const [bucket] = await storage.createBucket(bucketName);
// await bucket.upload(filepath);
// });

// test.after.always(async () => {
// const bucket = storage.bucket(bucketName);
// await bucket.deleteFiles({force: true});
// await bucket.deleteFiles({force: true}); // Try a second time...
// await bucket.delete();
// });

//DIARIZATION

test(`should run speech diarization`, async t => {
Expand Down

0 comments on commit 933d4a0

Please sign in to comment.