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 644f995 commit 8d41819
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 53 deletions.
3 changes: 1 addition & 2 deletions packages/google-cloud-dns/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 -- dns/test/*.test.js",
"system-test": "cd ..; npm run st -- dns/system-test/*.test.js"
"test": "cd ..; npm run st -- dns/system-test/*.test.js"
},
"dependencies": {
"@google-cloud/dns": "0.4.0",
Expand Down
14 changes: 6 additions & 8 deletions packages/google-cloud-dns/samples/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ const dnsClient = DNS({
});

// Lists all zones in the current project
dnsClient.getZones((err, zones) => {
if (err) {
console.error(err);
return;
}
dnsClient.getZones()
.then((results) => {
const zones = results[0];

console.log('Zones:');
zones.forEach((zone) => console.log(zone.name));
});
console.log('Zones:');
zones.forEach((zone) => console.log(zone.name));
});
// [END dns_quickstart]
43 changes: 0 additions & 43 deletions packages/google-cloud-dns/samples/test/quickstart.test.js

This file was deleted.

0 comments on commit 8d41819

Please sign in to comment.