| Server IP : 94.136.191.34 / Your IP : 216.73.216.25 Web Server : Apache System : Linux hostpanel.netbiz.in 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64 User : omkar.com_6nnuz6y629h ( 10087) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/omkar.com/httpdocs/assets/build/src/spec/tests/methods/ |
Upload File : |
"use strict";
describe("getNumber: init plugin with valid US number and utils.js", function() {
beforeEach(function() {
intlSetup(true);
input = $("<input value='+17024181234'>");
input.intlTelInput();
});
afterEach(function() {
input.intlTelInput("destroy");
input = null;
});
it("calling getNumber with no args returns the number as E.164", function() {
expect(input.intlTelInput("getNumber")).toEqual("+17024181234");
});
it("calling getNumber with format=INTERNATIONAL", function() {
expect(input.intlTelInput("getNumber", intlTelInputUtils.numberFormat.INTERNATIONAL)).toEqual("+1 702-418-1234");
});
it("calling getNumber with format=NATIONAL", function() {
expect(input.intlTelInput("getNumber", intlTelInputUtils.numberFormat.NATIONAL)).toEqual("(702) 418-1234");
});
});