File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
video-intelligence/system-test Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
'use strict' ;
19
19
20
20
require ( `../../system-test/_setup` ) ;
21
+ const path = require ( `path` ) ;
21
22
22
23
const cmd = `node analyze.js` ;
24
+ const cwd = path . join ( __dirname , `..` ) ;
23
25
24
26
// analyze_faces
25
27
test ( `should analyze faces` , async ( t ) => {
26
- const output = await runAsync ( `${ cmd } faces gs://nodejs-docs-samples/video/google_gmail.mp4` ) ;
28
+ const output = await runAsync ( `${ cmd } faces gs://nodejs-docs-samples/video/google_gmail.mp4` , cwd ) ;
27
29
t . regex ( output , / T h u m b n a i l s i z e : \d + / ) ;
28
30
} ) ;
29
31
30
32
// analyze_labels
31
33
test ( `should analyze labels` , async ( t ) => {
32
- const output = await runAsync ( `${ cmd } labels gs://nodejs-docs-samples/video/cat.mp4` ) ;
34
+ const output = await runAsync ( `${ cmd } labels gs://nodejs-docs-samples/video/cat.mp4` , cwd ) ;
33
35
t . regex ( output , / L a b e l d e s c r i p t i o n : W h i s k e r s / ) ;
34
36
} ) ;
35
37
36
38
// analyze_shots
37
39
test ( `should analyze shots` , async ( t ) => {
38
- const output = await runAsync ( `${ cmd } shots gs://nodejs-docs-samples/video/gbike_dinosaur.mp4` ) ;
40
+ const output = await runAsync ( `${ cmd } shots gs://nodejs-docs-samples/video/gbike_dinosaur.mp4` , cwd ) ;
39
41
t . regex ( output , / S c e n e 0 : / ) ;
40
42
} ) ;
You can’t perform that action at this time.
0 commit comments