Created 10 detailed GitHub issues covering: - Project activation and management UI (#1-2) - Worker node coordination and visualization (#3-4) - Automated GitHub repository scanning (#5) - Intelligent model-to-issue matching (#6) - Multi-model task execution system (#7) - N8N workflow integration (#8) - Hive-Bzzz P2P bridge (#9) - Peer assistance protocol (#10) Each issue includes detailed specifications, acceptance criteria, technical implementation notes, and dependency mapping. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
suite('lunr.MatchData', function () {
|
|
suite('#combine', function () {
|
|
setup(function () {
|
|
this.match = new lunr.MatchData('foo', 'title', {
|
|
position: [1]
|
|
})
|
|
|
|
this.match.combine(new lunr.MatchData('bar', 'title', {
|
|
position: [2]
|
|
}))
|
|
|
|
this.match.combine(new lunr.MatchData('baz', 'body', {
|
|
position: [3]
|
|
}))
|
|
|
|
this.match.combine(new lunr.MatchData('baz', 'body', {
|
|
position: [4]
|
|
}))
|
|
})
|
|
|
|
test('#terms', function () {
|
|
assert.sameMembers(['foo', 'bar', 'baz'], Object.keys(this.match.metadata))
|
|
})
|
|
|
|
test('#metadata', function () {
|
|
assert.deepEqual(this.match.metadata.foo.title.position, [1])
|
|
assert.deepEqual(this.match.metadata.bar.title.position, [2])
|
|
assert.deepEqual(this.match.metadata.baz.body.position, [3, 4])
|
|
})
|
|
|
|
test('does not mutate source data', function () {
|
|
var metadata = { foo: [1] },
|
|
matchData1 = new lunr.MatchData('foo', 'title', metadata),
|
|
matchData2 = new lunr.MatchData('foo', 'title', metadata)
|
|
|
|
matchData1.combine(matchData2)
|
|
|
|
assert.deepEqual(metadata.foo, [1])
|
|
})
|
|
})
|
|
})
|