feat(Perplexity Node): New node (#13604)

This commit is contained in:
Stanimira Rikova
2025-05-29 22:01:19 +03:00
committed by GitHub
parent 041ada1fd6
commit 6d3e6eef00
14 changed files with 988 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { Perplexity } from '../../Perplexity/Perplexity.node';
import { description } from '../descriptions/chat/complete.operation';
jest.mock('../../Perplexity/GenericFunctions', () => ({
getModels: jest.fn(),
}));
describe('Perplexity Node', () => {
let node: Perplexity;
beforeEach(() => {
node = new Perplexity();
});
describe('Node Description', () => {
it('should correctly include chat completion properties', () => {
const properties = node.description.properties;
expect(properties).toEqual(expect.arrayContaining(description));
});
});
});