Skip to content

Commit b028bb8

Browse files
authored
* Refactored Pub/Sub samples into nice command-line programs, like the new Cloud Storage samples (#164)
* Brought Pub/Sub samples code coverage up to 98.66%
1 parent 2bb0b89 commit b028bb8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

handwritten/logging-winston/samples/system-test/export.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var exportExample = require('../export');
1818
describe('logging:export', function () {
1919
it('should list sinks', function (done) {
2020
exportExample.main(function (err, sinks) {
21-
assert(!err);
21+
assert.ifError(err);
2222
assert(sinks, 'should have received sinks');
2323
assert(Array.isArray(sinks), 'sinks should be an array');
2424
done();

handwritten/logging-winston/samples/system-test/list.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var listExample = require('../list');
1818
describe('logging:list', function () {
1919
it('should list entries', function (done) {
2020
listExample.main(undefined, function (err, entries, nextQuery, apiResponse) {
21-
assert(!err);
21+
assert.ifError(err);
2222
assert(entries, 'should have received entries');
2323
assert(Array.isArray(entries), 'entries should be an array');
2424
assert(nextQuery, 'should have received nextQuery');

handwritten/logging-winston/samples/system-test/write.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('logging:write', function () {
2121
if (err && err.code === 404) {
2222
return done();
2323
}
24-
assert(!err);
24+
assert.ifError(err);
2525
assert(results.length === 2, 'should have two results');
2626
done();
2727
});

0 commit comments

Comments
 (0)