-
Notifications
You must be signed in to change notification settings - Fork 25
docs(samples): add quickstart code for ExportAssets #50
Conversation
While the code can pass test with ava, it always timeout when testing with mocha. |
Thanks for your review.
|
Sure! To lint, you can just run
See this as an example: |
Also, I enabled the API 👍 |
I still can't fun lint locally, it complains about missing script: npm ERR! A complete log of this run can be found in: |
OK, added fix at top level package.json (locally) and now I can run "npm run fix". Thanks. |
Goodness, apologies. For now you could run |
Now both test and lint pass on my local machine. Thanks! |
Codecov Report
@@ Coverage Diff @@
## master #50 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 4 4
=====================================
Hits 4 4 Continue to review full report at Codecov.
|
|
||
const assert = require('assert'); | ||
const path = require('path'); | ||
const test = require('mocha'); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
const bucketName = `asset-nodejs-${uuid.v4()}`; | ||
const bucket = storage.bucket(bucketName); | ||
|
||
test.describe('quickstart sample tests', () => { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)