mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Perplexity Node): New node (#13604)
This commit is contained in:
@@ -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));
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user