mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
23 lines
574 B
TypeScript
23 lines
574 B
TypeScript
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));
|
|
});
|
|
});
|
|
});
|