test(Date & Time Node): Skip the test when local timezone is not in UTC (no-changelog) (#5735)
Check for moment default timezone in dateTime tests
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
|
import moment from 'moment';
|
||||||
import { testWorkflows, getWorkflowFilenames } from '../../../../test/nodes/Helpers';
|
import { testWorkflows, getWorkflowFilenames } from '../../../../test/nodes/Helpers';
|
||||||
|
|
||||||
const workflows = getWorkflowFilenames(__dirname);
|
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
|
// ! 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) {
|
if (new Date().getTimezoneOffset() === 0 || moment().utcOffset() === 0) {
|
||||||
describe('Test DateTime Node', () => testWorkflows(workflows));
|
describe('Test DateTime Node', () => testWorkflows(workflows));
|
||||||
} else {
|
} else {
|
||||||
describe('Test DateTime Node', () => {
|
describe('Test DateTime Node', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user