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 e85c279 commit e44bdd6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 55 deletions.
7 changes: 3 additions & 4 deletions packages/google-cloud-resourcemanager/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"license": "Apache Version 2.0",
"author": "Google Inc.",
"scripts": {
"test": "cd ..; npm run t -- resource/test/*.test.js",
"system-test": "cd ..; npm run st -- resource/system-test/*.test.js"
"test": "cd ..; npm run st -- resource/system-test/*.test.js"
},
"dependencies": {
"@google-cloud/resource": "0.5.0",
"yargs": "6.5.0"
"@google-cloud/resource": "0.5.1",
"yargs": "6.6.0"
},
"engines": {
"node": ">=4.3.2"
Expand Down
14 changes: 6 additions & 8 deletions packages/google-cloud-resourcemanager/samples/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ const resourceClient = Resource({
});

// Lists current projects
resourceClient.getProjects((err, projects) => {
if (err) {
console.error(err);
return;
}
resourceClient.getProjects()
.then((results) => {
const projects = results[0];

console.log('Projects:');
projects.forEach((project) => console.log(project.id));
});
console.log('Projects:');
projects.forEach((project) => console.log(project.id));
});
// [END resource_quickstart]

This file was deleted.

0 comments on commit e44bdd6

Please sign in to comment.