Rename all non-snake-case JS/TS files

[MAILPOET-4938]
This commit is contained in:
Jan Jakes
2023-09-26 09:40:42 +02:00
committed by Aschepikov
parent d058549851
commit c8fc6bf49a
685 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
import { expect } from 'chai';
import { asNum } from '../../../../assets/js/src/form_editor/store/server_value_as_num';
describe('Server value as num', () => {
it('Converts string to number', () => {
expect(asNum('4')).to.equal(4);
expect(asNum('0')).to.equal(0);
expect(asNum('09')).to.equal(9);
expect(asNum('159')).to.equal(159);
expect(asNum('-159')).to.equal(-159);
});
it('Converts returns undefined', () => {
expect(asNum('xxx')).to.be.undefined;
expect(asNum(null)).to.be.undefined;
expect(asNum(undefined)).to.be.undefined;
});
});