1- import Pattern from "../src/entry" ;
1+ import { TextArea , UrlArea } from "../src/entry" ;
2+
23const assert = require ( 'assert' ) ;
34/*function test(title, testCode) {
45 try {
@@ -37,11 +38,11 @@ describe('BDD style', function() {
3738
3839 describe ( 'UrlArea' , function ( ) {
3940 it ( 'normalizeUrl' , function ( ) {
40- expect ( Pattern . UrlArea . normalizeUrl ( "htp/:/abcgermany.,def;:9094 #park//noon??abc=retry" ) . normalizedUrl )
41+ expect ( UrlArea . normalizeUrl ( "htp/:/abcgermany.,def;:9094 #park//noon??abc=retry" ) . normalizedUrl )
4142 . toBe ( "http://abcgermany.de:9094#park/noon?abc=retry" ) ;
4243 } ) ;
4344 it ( 'parseUrl' , function ( ) {
44- expect ( Pattern . UrlArea . parseUrl ( "xtp://gooppalgo.com/park/tree/?abc=1" ) . onlyUriWithParams )
45+ expect ( UrlArea . parseUrl ( "xtp://gooppalgo.com/park/tree/?abc=1" ) . onlyUriWithParams )
4546 . toBe ( "/park/tree/?abc=1" ) ;
4647 } ) ;
4748 } ) ;
@@ -59,7 +60,7 @@ describe('BDD style', function() {
5960
6061
6162 it ( 'extractAllUrls' , function ( ) {
62- assert . deepEqual ( Pattern . TextArea . extractAllUrls ( textStr ) , [
63+ assert . deepEqual ( TextArea . extractAllUrls ( textStr ) , [
6364 {
6465 "value" : {
6566 "url" : "http://[::1]:8000" ,
@@ -324,7 +325,7 @@ describe('BDD style', function() {
324325 } ) ;
325326
326327 it ( 'extractAllUrlsWithIntranets' , function ( ) {
327- assert . deepEqual ( Pattern . TextArea . extractAllUrls ( textStr , { ip_v4 : false , ip_v6 :false , localhost : false , intranet : true } ) , [
328+ assert . deepEqual ( TextArea . extractAllUrls ( textStr , { ip_v4 : false , ip_v6 :false , localhost : false , intranet : true } ) , [
328329 {
329330 "value" : {
330331 "url" : "http://[::1]:8000" ,
@@ -648,7 +649,7 @@ describe('BDD style', function() {
648649 } ) ;
649650
650651 it ( 'extractAllEmails' , function ( ) {
651- assert . deepEqual ( Pattern . TextArea . extractAllEmails ( textStr , true ) , [
652+ assert . deepEqual ( TextArea . extractAllEmails ( textStr , true ) , [
652653 {
653654 "value" : {
654655 "email" : "가나다@apacbook.ac.kr" ,
0 commit comments