Replace sources/targets with links in messages

Replace the sources/targets concept with a links array in the message
definitions.  Fixes the problem of the actual links the messages applies
to being ambigious when there's multiple sources and targets.
This commit is contained in:
Hornwitser committed 2019-11-30 00:08:10 +01:00
1 parent 3be264c9a9
commit c6fd46e3c3
2 files changed
+18 -31

No files matched your search

+2 -4
View File
@@ -15,8 +15,7 @@ describe("lib/link/messages", function() {
describe("class Request", function() {
let testRequest = new link.Request({
type: 'test',
sources: 'source',
targets: 'target',
links: ['source-target'],
});
describe(".attach()", function() {
@@ -114,8 +113,7 @@ describe("lib/link/messages", function() {
describe("class Event", function() {
let testEvent = new link.Event({
type: 'test',
sources: 'source',
targets: 'target',
links: ['source-target'],
});
describe(".attach()", function() {