@nangohq/nango-yaml
Advanced tools
Comparing version 0.42.8 to 0.42.9
@@ -70,3 +70,3 @@ import path from 'node:path'; | ||
} | ||
if (ms(interval) < ms('5m')) { | ||
if (ms(interval) < ms('30s')) { | ||
return new Error('sync_interval_too_short'); | ||
@@ -73,0 +73,0 @@ } |
import { expect, describe, it } from 'vitest'; | ||
import { getInterval, isJsOrTsType } from './helpers.js'; | ||
describe('Nango Config Interval tests', () => { | ||
it('throws error when interval is less than 5 minutes', () => { | ||
const interval = getInterval('every 4m', new Date()); | ||
it('throws error when interval is less than 30 seconds', () => { | ||
const interval = getInterval('every 20s', new Date()); | ||
expect(interval).toStrictEqual(new Error('sync_interval_too_short')); | ||
@@ -7,0 +7,0 @@ }); |
{ | ||
"name": "@nangohq/nango-yaml", | ||
"version": "0.42.8", | ||
"version": "0.42.9", | ||
"type": "module", | ||
@@ -20,3 +20,3 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@nangohq/types": "^0.42.8", | ||
"@nangohq/types": "^0.42.9", | ||
"vitest": "1.6.0" | ||
@@ -23,0 +23,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
170332