Skip to content

Commit

Permalink
fix: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
zetxx committed Aug 5, 2021
1 parent a954479 commit 5906b6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/bridge/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Bridge {
});
}

merge({other}) {
intersect({other}) {
this.other = other;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/bridge/test.bridge.multi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ tap.test('Bridge simulations', (l0) => {
const bridgeA = new Bridge({config: {id: 'bridgeA', request: {waitTime: 200000000}}});
const bridgeB = new Bridge({config: {id: 'bridgeB', request: {waitTime: 200000000}}});

bridgeA.merge({other: bridgeB});
bridgeB.merge({other: bridgeA});
bridgeA.intersect({other: bridgeB});
bridgeB.intersect({other: bridgeA});

bridgeA.method.add({
method: 'a.in',
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/bridge/test.bridge.single.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Bridge = require('../../../lib/bridge');
tap.test('Bridge', (l0) => {
l0.test('Simple checks and coverage', (t) => {
const bridge = new Bridge();
bridge.merge({});
bridge.intersect({});
bridge.destroy();
t.end();
});
Expand Down

0 comments on commit 5906b6f

Please sign in to comment.