Skip to content

Commit

Permalink
Switch from Mocha to Ava for faster tests (#289)
Browse files Browse the repository at this point in the history
* Switch from Mocha to Ava

* Concurrency: 5
  • Loading branch information
jmdobry authored Jan 6, 2017
1 parent 1b8636f commit 726d602
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 54 deletions.
3 changes: 1 addition & 2 deletions packages/google-cloud-vision/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"license": "Apache Version 2.0",
"author": "Google Inc.",
"scripts": {
"test": "cd ..; npm run t -- vision/test/*.test.js",
"system-test": "cd ..; npm run st -- vision/system-test/*.test.js"
"test": "cd ..; npm run st -- vision/system-test/*.test.js"
},
"dependencies": {
"@google-cloud/vision": "0.7.0",
Expand Down
14 changes: 6 additions & 8 deletions packages/google-cloud-vision/samples/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ const visionClient = Vision({
const fileName = './resources/wakeupcat.jpg';

// Performs label detection on the image file
visionClient.detectLabels(fileName, (err, labels) => {
if (err) {
console.error(err);
return;
}
visionClient.detectLabels(fileName)
.then((results) => {
const labels = results[0];

console.log('Labels:');
labels.forEach((label) => console.log(label));
});
console.log('Labels:');
labels.forEach((label) => console.log(label));
});
// [END vision_quickstart]
44 changes: 0 additions & 44 deletions packages/google-cloud-vision/samples/test/quickstart.test.js

This file was deleted.

0 comments on commit 726d602

Please sign in to comment.