✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
36 lines
1.7 KiB
JavaScript
36 lines
1.7 KiB
JavaScript
/*
|
|
import { containsMoreThanOneSlashInNationalNumber } from './Leniency.js'
|
|
|
|
describe('Leniency', () => {
|
|
it('testContainsMoreThanOneSlashInNationalNumber', () => {
|
|
// A date should return true.
|
|
number.setCountryCode(1)
|
|
number.setCountryCodeSource(CountryCodeSource.FROM_DEFAULT_COUNTRY)
|
|
containsMoreThanOneSlashInNationalNumber(number, '1/05/2013').should.equal(true)
|
|
|
|
// Here, the country code source thinks it started with a country calling code, but this is not
|
|
// the same as the part before the slash, so it's still true.
|
|
number.setCountryCode(274)
|
|
number.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)
|
|
containsMoreThanOneSlashInNationalNumber(number, '27/4/2013').should.equal(true)
|
|
|
|
// Now it should be false, because the first slash is after the country calling code.
|
|
number.setCountryCode(49)
|
|
number.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN)
|
|
containsMoreThanOneSlashInNationalNumber(number, '49/69/2013').should.equal(false)
|
|
|
|
number.setCountryCode(49)
|
|
number.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)
|
|
containsMoreThanOneSlashInNationalNumber(number, '+49/69/2013').should.equal(false)
|
|
containsMoreThanOneSlashInNationalNumber(number, '+ 49/69/2013').should.equal(false)
|
|
containsMoreThanOneSlashInNationalNumber(number, '+ 49/69/20/13').should.equal(true)
|
|
|
|
// Here, the first group is not assumed to be the country calling code, even though it is the
|
|
// same as it, so this should return true.
|
|
number.setCountryCode(49)
|
|
number.setCountryCodeSource(CountryCodeSource.FROM_DEFAULT_COUNTRY)
|
|
containsMoreThanOneSlashInNationalNumber(number, '49/69/2013').should.equal(true)
|
|
})
|
|
})
|
|
*/
|
|
//# sourceMappingURL=Leniency.test.js.map
|