File tree 1 file changed +5
-8
lines changed
asset/snippets/system-test
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 17
17
18
18
const assert = require ( 'assert' ) ;
19
19
const path = require ( 'path' ) ;
20
- const test = require ( 'mocha' ) ;
21
20
const tools = require ( '@google-cloud/nodejs-repo-tools' ) ;
22
21
const util = require ( 'util' ) ;
23
22
const uuid = require ( 'uuid' ) ;
@@ -30,17 +29,15 @@ const storage = new Storage();
30
29
const bucketName = `asset-nodejs-${ uuid . v4 ( ) } ` ;
31
30
const bucket = storage . bucket ( bucketName ) ;
32
31
33
- test . describe ( 'quickstart sample tests' , ( ) => {
34
- test . before ( tools . checkCredentials ) ;
35
- test . before ( async ( ) => {
32
+ describe ( 'Quickstart sample tests' , ( ) => {
33
+ before ( async ( ) => {
34
+ tools . checkCredentials ( ) ;
36
35
await bucket . create ( ) ;
37
36
} ) ;
38
37
39
- test . after ( async ( ) => {
40
- await bucket . delete ( ) ;
41
- } ) ;
38
+ after ( async ( ) => await bucket . delete ( ) ) ;
42
39
43
- test . it ( 'should export assets to specified path' , async ( ) => {
40
+ it ( 'should export assets to specified path' , async ( ) => {
44
41
const dumpFilePath = util . format ( 'gs://%s/my-assets.txt' , bucketName ) ;
45
42
await tools . runAsyncWithIO ( `${ cmd } export-assets ${ dumpFilePath } ` , cwd ) ;
46
43
const file = await bucket . file ( 'my-assets.txt' ) ;
You can’t perform that action at this time.
0 commit comments