diff --git a/__tests__/mask/no-mask.mask.test.js b/__tests__/mask/no-mask.mask.test.js new file mode 100644 index 00000000..bf513af4 --- /dev/null +++ b/__tests__/mask/no-mask.mask.test.js @@ -0,0 +1,20 @@ +import { NoMask } from '../../lib/masks' + +test('getType results no-mask', () => { + var expected = 'no-mask' + var received = NoMask.getType() + + expect(received).toBe(expected) +}) + +test('abc123$%.,* results abc123$%.,* and raw value abc123$%.,*', () => { + var mask = new NoMask() + var expected = 'abc123$%.,*' + var received = mask.getValue('abc123$%.,*') + + var expectedRawValue = 'abc123$%.,*' + var receivedRawValue = mask.getRawValue(received) + + expect(received).toBe(expected) + expect(receivedRawValue).toBe(expectedRawValue) +}) diff --git a/dist/lib/masks/index.js b/dist/lib/masks/index.js index 84b569e3..53911d9b 100644 --- a/dist/lib/masks/index.js +++ b/dist/lib/masks/index.js @@ -1 +1 @@ -var _celPhone=require('./cel-phone.mask');var _celPhone2=_interopRequireDefault(_celPhone);var _cnpj=require('./cnpj.mask');var _cnpj2=_interopRequireDefault(_cnpj);var _cpf=require('./cpf.mask');var _cpf2=_interopRequireDefault(_cpf);var _custom=require('./custom.mask');var _custom2=_interopRequireDefault(_custom);var _datetime=require('./datetime.mask');var _datetime2=_interopRequireDefault(_datetime);var _money=require('./money.mask');var _money2=_interopRequireDefault(_money);var _onlyNumbers=require('./only-numbers.mask');var _onlyNumbers2=_interopRequireDefault(_onlyNumbers);var _zipCode=require('./zip-code.mask');var _zipCode2=_interopRequireDefault(_zipCode);var _creditCard=require('./credit-card.mask');var _creditCard2=_interopRequireDefault(_creditCard);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports.CelPhoneMask=_celPhone2.default;module.exports.CnpjMask=_cnpj2.default;module.exports.CpfMask=_cpf2.default;module.exports.CustomMask=_custom2.default;module.exports.DatetimeMask=_datetime2.default;module.exports.MoneyMask=_money2.default;module.exports.OnlyNumbersMask=_onlyNumbers2.default;module.exports.ZipCodeMask=_zipCode2.default;module.exports.CreditCardMask=_creditCard2.default; \ No newline at end of file +var _celPhone=require('./cel-phone.mask');var _celPhone2=_interopRequireDefault(_celPhone);var _cnpj=require('./cnpj.mask');var _cnpj2=_interopRequireDefault(_cnpj);var _cpf=require('./cpf.mask');var _cpf2=_interopRequireDefault(_cpf);var _custom=require('./custom.mask');var _custom2=_interopRequireDefault(_custom);var _datetime=require('./datetime.mask');var _datetime2=_interopRequireDefault(_datetime);var _money=require('./money.mask');var _money2=_interopRequireDefault(_money);var _onlyNumbers=require('./only-numbers.mask');var _onlyNumbers2=_interopRequireDefault(_onlyNumbers);var _zipCode=require('./zip-code.mask');var _zipCode2=_interopRequireDefault(_zipCode);var _creditCard=require('./credit-card.mask');var _creditCard2=_interopRequireDefault(_creditCard);var _noMask=require('./no-mask.mask');var _noMask2=_interopRequireDefault(_noMask);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports.CelPhoneMask=_celPhone2.default;module.exports.CnpjMask=_cnpj2.default;module.exports.CpfMask=_cpf2.default;module.exports.CustomMask=_custom2.default;module.exports.DatetimeMask=_datetime2.default;module.exports.MoneyMask=_money2.default;module.exports.OnlyNumbersMask=_onlyNumbers2.default;module.exports.ZipCodeMask=_zipCode2.default;module.exports.CreditCardMask=_creditCard2.default;module.exports.NoMask=_noMask2.default; \ No newline at end of file diff --git a/dist/lib/masks/no-mask.mask.js b/dist/lib/masks/no-mask.mask.js new file mode 100644 index 00000000..df20f4cd --- /dev/null +++ b/dist/lib/masks/no-mask.mask.js @@ -0,0 +1 @@ +Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i