refactor: Overhaul nodes-testing setup - Part 2 (no-changelog) (#14873)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-04-24 17:37:26 +02:00
committed by GitHub
parent 897338bd24
commit 91069f057e
119 changed files with 556 additions and 1002 deletions

View File

@@ -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);
});
});