mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Overhaul nodes-testing setup - Part 2 (no-changelog) (#14873)
This commit is contained in:
committed by
GitHub
parent
897338bd24
commit
91069f057e
@@ -10,6 +10,25 @@ import {
|
||||
} from './apiResponses';
|
||||
|
||||
describe('PhilipsHue', () => {
|
||||
const credentials = {
|
||||
philipsHueOAuth2Api: {
|
||||
grantType: 'authorizationCode',
|
||||
appId: 'APPID',
|
||||
authUrl: 'https://api.meethue.com/v2/oauth2/authorize',
|
||||
accessTokenUrl: 'https://api.meethue.com/v2/oauth2/token',
|
||||
authQueryParameters: 'appid=APPID',
|
||||
scope: '',
|
||||
authentication: 'header',
|
||||
oauthTokenData: {
|
||||
access_token: 'ACCESSTOKEN',
|
||||
refresh_token: 'REFRESHTOKEN',
|
||||
scope: '',
|
||||
token_type: 'bearer',
|
||||
expires_in: 86400,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
describe('Run workflow', () => {
|
||||
beforeAll(() => {
|
||||
const mock = nock('https://api.meethue.com/route');
|
||||
@@ -20,6 +39,6 @@ describe('PhilipsHue', () => {
|
||||
});
|
||||
|
||||
const workflows = getWorkflowFilenames(__dirname);
|
||||
testWorkflows(workflows);
|
||||
testWorkflows(workflows, credentials);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user