Skip to content

Commit

Permalink
test(webpack): Update test to use v4 api
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed Feb 11, 2023
1 parent dcab7b4 commit c61bbd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import PhoneNumber from 'awesome-phonenumber'
import { parsePhoneNumber } from 'awesome-phonenumber'

const div = document.createElement( 'div' );
div.id = 'rootdiv';

const pn = new PhoneNumber( '+46707123456' );
div.innerHTML = `Formatted: ${pn.getNumber('national')}`;
const pn = parsePhoneNumber( '+46707123456' );
div.innerHTML = `Formatted: ${pn.number.national}`;

document.documentElement.appendChild( div );

0 comments on commit c61bbd6

Please sign in to comment.