Skip to content

Commit e997b3b

Browse files
committed
test: add plugin function test
1 parent 6d2cf48 commit e997b3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ describe('Client', () => {
506506
}).catch(done);
507507
});
508508

509-
it('get measurement', done => {
509+
it('add plugin', done => {
510510
let called = false;
511511
client.addPlugin((req) => {
512512
if (called) {
@@ -521,7 +521,9 @@ describe('Client', () => {
521521
.then(() => {
522522
if (!called) {
523523
done(new Error('not called'));
524+
return;
524525
}
526+
done();
525527
})
526528
.catch(done);
527529
});

0 commit comments

Comments
 (0)