mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
* ✨ Add tests to DateTime node * Test different timezone * Try new fix * Fix workflow change time of workflow exec in UTC * Check if UTC is correctly setup --------- Co-authored-by: Marcus <marcus@n8n.io>
15 lines
512 B
TypeScript
15 lines
512 B
TypeScript
import { testWorkflows, getWorkflowFilenames } from '../../../../test/nodes/Helpers';
|
|
|
|
const workflows = getWorkflowFilenames(__dirname);
|
|
|
|
// ! When making changes to the Workflow test files make sure to export env TZ=UTC as Github Actions runs in UTC timezone
|
|
if (new Date().getTimezoneOffset() === 0) {
|
|
describe('Test DateTime Node', () => testWorkflows(workflows));
|
|
} else {
|
|
describe('Test DateTime Node', () => {
|
|
it('Skipped because timezone is not UTC', () => {
|
|
expect(true).toBe(true);
|
|
});
|
|
});
|
|
}
|