feat: Поиск - with it on the assistant searches DuckDuckGo itself and answers from what it found; without it, it cannot. «Думал N сек.»
This commit is contained in:
1 parent
fa62f2c5b6
commit
9bf30b281e
8 files changed
+921
-7
No files matched your search
@@ -75,3 +75,8 @@ test('md: the common marks, everything else escaped', () => {
|
||||
// Inside code nothing is marked up.
|
||||
assert.strictEqual(U.md('`**a**`'), '<p><code>**a**</code></p>');
|
||||
});
|
||||
|
||||
test('parseActions: search blocks', () => {
|
||||
assert.deepStrictEqual(U.parseActions('Ищу:\n```search\nnginx 1.27 changelog\n```'),
|
||||
[{kind: 'search', machine: '', path: '', body: 'nginx 1.27 changelog'}]);
|
||||
});
|
||||
Reference in new issue
Block a user