mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
46d013cbc5
Check for moment default timezone in dateTime tests
16 lines
571 B
TypeScript
16 lines
571 B
TypeScript
import moment from 'moment';
|
|
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 || moment().utcOffset() === 0) {
|
|
describe('Test DateTime Node', () => testWorkflows(workflows));
|
|
} else {
|
|
describe('Test DateTime Node', () => {
|
|
it('Skipped because timezone is not UTC', () => {
|
|
expect(true).toBe(true);
|
|
});
|
|
});
|
|
}
|