I hereby claim:
- I am bbshih on github.
- I am billyshih (https://keybase.io/billyshih) on keybase.
- I have a public key whose fingerprint is 6863 969C 0096 38AA 4FF1 1E10 CEAB D8DB B627 4091
To claim this, I am signing this object:
| // To mock globally in all your tests, add to setupTestFrameworkScriptFile in config: | |
| // https://facebook.github.io/jest/docs/en/configuration.html#setuptestframeworkscriptfile-string | |
| jest.mock('moment', () => { | |
| const moment = require.requireActual('moment-timezone'); | |
| moment.tz.setDefault('America/Los_Angeles'); // Whatever timezone you want | |
| return moment; | |
| }); |
I hereby claim:
To claim this, I am signing this object:
| ClientSideValidations.formBuilders["FormtasticBootstrap::FormBuilder"] = { | |
| add: function (element, settings, message) { | |
| if (element.data('valid') !== false) { | |
| element.data('valid', false); | |
| var $parent = element.closest('.controls'); | |
| $parent.parent().addClass('error'); | |
| $('<span/>').addClass('help-inline').text(message).appendTo($parent); | |
| } else { | |
| element.parent().find('span.help-inline').text(message); | |
| } |