Skip to content

Commit

Permalink
tests: fix assertion syntax (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Mar 14, 2019
1 parent e24f2d1 commit 813ecca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/bucket.ts
Expand Up @@ -1120,7 +1120,7 @@ describe('Bucket', () => {

it('should not require a callback', done => {
bucket.setMetadata = (metadata: {}, callback: Function) => {
assert.doesNotThrow(callback);
assert.doesNotThrow(() => callback());
done();
};

Expand All @@ -1144,7 +1144,7 @@ describe('Bucket', () => {

it('should not require a callback', done => {
bucket.setMetadata = (metadata: {}, callback: Function) => {
assert.doesNotThrow(callback);
assert.doesNotThrow(() => callback());
done();
};

Expand Down
2 changes: 1 addition & 1 deletion test/channel.ts
Expand Up @@ -119,7 +119,7 @@ describe('Channel', () => {
it('should not require a callback', done => {
channel.request =
(reqOpts: DecorateRequestOptions, callback: Function) => {
assert.doesNotThrow(callback);
assert.doesNotThrow(() => callback());
done();
};

Expand Down

0 comments on commit 813ecca

Please sign in to comment.