poly-js-utils
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "poly-js-utils", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Common client-side tools used in HSS Sites themes and locators.", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -23,5 +23,5 @@ var viewHelpers = require('../src/view-helpers'); | ||
it("should correctly format 10-digit phone numbers for pretty formatting with prefix", function() { | ||
it("should leave the format with 10-digit phone numbers with prefix", function() { | ||
var phone = "+555-123-4567"; | ||
var expected = "+5551234567"; | ||
var expected = "+555-123-4567"; | ||
expect(viewHelpers.phoneFormat(phone, true)).toBe(expected); | ||
@@ -36,5 +36,5 @@ }); | ||
it("should correctly format 11-digit phone numbers for pretty formatting with prefix", function() { | ||
it("should leave format with 11-digit phone numbers with prefix", function() { | ||
var phone = "+1-555-123-4567"; | ||
var expected = "+15551234567"; | ||
var expected = "+1-555-123-4567"; | ||
expect(viewHelpers.phoneFormat(phone, true)).toBe(expected); | ||
@@ -41,0 +41,0 @@ }); |
@@ -72,3 +72,3 @@ /****************************/ | ||
else { | ||
return prefix + digits + extension; | ||
return phone + extension; | ||
} | ||
@@ -75,0 +75,0 @@ } |
92788