mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-28 15:27:03 +02:00
23 lines
579 B
TypeScript
23 lines
579 B
TypeScript
import { Perplexity } from '../../Perplexity/Perplexity.node';
|
|
import { description } from '../descriptions/chat/complete.operation';
|
|
|
|
jest.mock('../../Perplexity/GenericFunctions', () => ({
|
|
getAgentModels: 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));
|
|
});
|
|
});
|
|
});
|