Created
February 21, 2019 15:13
-
-
Save ecklf/7ec69fd685b5b9d63871ec60400464ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bucket = admin.storage().bucket(testEnv.storageBucket); | |
const file = bucket.file(mockObject.name); | |
const contents = JSON.stringify(mockObject, null, 2); | |
file.save(contents, function(err) { | |
if (!err) { | |
// file written | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment