mirror of
https://github.com/kennethnym/aris.git
synced 2026-06-17 21:11:17 +01:00
feat: seed default user sources
This commit is contained in:
@@ -37,7 +37,7 @@ describe("WebSearchSource", () => {
|
||||
test("has correct id", () => {
|
||||
const source = new WebSearchSource({ client: new RecordingSearchClient() })
|
||||
|
||||
expect(source.id).toBe("freya.web-search")
|
||||
expect(source.id).toBe(WebSearchSource.id)
|
||||
})
|
||||
|
||||
test("does not provide context or feed items", async () => {
|
||||
|
||||
@@ -41,7 +41,9 @@ const SearchInput = type({
|
||||
* action and receive structured web results.
|
||||
*/
|
||||
export class WebSearchSource implements FeedSource {
|
||||
readonly id = "freya.web-search"
|
||||
static readonly id = "freya.web-search"
|
||||
|
||||
readonly id = WebSearchSource.id
|
||||
|
||||
private readonly client: WebSearchClient
|
||||
|
||||
|
||||
Reference in New Issue
Block a user