Skip to content

Commit

Permalink
test: add image upload test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaixhin committed Oct 16, 2015
1 parent 5590a4b commit f8cb8df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
"dependencies": {
"body-parser": "^1.14.1",
"bytes": "^2.1.0",
"continuation-local-storage": "^3.1.4",
"dotenv": "^1.2.0",
"express": "^4.13.3",
"morgan": "^1.6.1",
"mz": "^2.0.0",
"request-promise": "^1.0.0"
"mz": "^2.1.0",
"request-promise": "^1.0.1"
},
"devDependencies": {
"conventional-github-releaser": "^0.5.0",
Expand Down
Binary file added test/mnist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions test/rand.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,7 @@ fs.writeFileSync(opts._id + "/chart.json", JSON.stringify({_charts: [{_columnNam
fs.writeFileSync(opts._id + "/notes.json", JSON.stringify({"Notes": "This field is being used to store notes about the experiment.", "Version": "Node.js " + process.version}));
// Store source code
fs.writeFileSync(opts._id + "/source_code.js", fs.readFileSync("./rand.js"));
// Store image
fs.writeFileSync(opts._id + "/mnist.png", fs.readFileSync("./mnist.png"));

console.log("Program finished");

0 comments on commit f8cb8df

Please sign in to comment.