6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
25 lines
649 B
JavaScript
25 lines
649 B
JavaScript
'use strict';
|
|
|
|
const { expect } = require('chai');
|
|
const validate = require('../../src/pattern-validation');
|
|
|
|
describe('pattern-validation', () => {
|
|
it('should succeed with a valid expression', () => {
|
|
expect(() => {
|
|
validate('59 * * * *');
|
|
}).to.not.throw();
|
|
});
|
|
|
|
it('should fail with an invalid expression', () => {
|
|
expect(() => {
|
|
validate('60 * * * *');
|
|
}).to.throw('60 is a invalid expression for minute');
|
|
});
|
|
|
|
it('should fail without a string', () => {
|
|
expect(() => {
|
|
validate(50);
|
|
}).to.throw('pattern must be a string!');
|
|
});
|
|
});
|