1- import { TextAreaApi , UrlAreaApi } from "../src/entry" ;
1+ import { TextArea , UrlArea } from "../src/entry" ;
22
33const assert = require ( 'assert' ) ;
44
@@ -24,11 +24,11 @@ describe('BDD style (URL,EMAIL)', function() {
2424
2525 describe ( 'UrlArea' , function ( ) {
2626 it ( 'normalizeUrl' , function ( ) {
27- expect ( UrlAreaApi . normalizeUrl ( "htp/:/abcgermany.,def;:9094 #park//noon??abc=retry" ) . normalizedUrl )
27+ expect ( UrlArea . normalizeUrl ( "htp/:/abcgermany.,def;:9094 #park//noon??abc=retry" ) . normalizedUrl )
2828 . toBe ( "http://abcgermany.de:9094#park/noon?abc=retry" ) ;
2929 } ) ;
3030 it ( 'parseUrl' , function ( ) {
31- expect ( UrlAreaApi . parseUrl ( "xtp://gooppalgo.com/park/tree/?abc=1" ) . onlyUriWithParams )
31+ expect ( UrlArea . parseUrl ( "xtp://gooppalgo.com/park/tree/?abc=1" ) . onlyUriWithParams )
3232 . toBe ( "/park/tree/?abc=1" ) ;
3333 } ) ;
3434 } ) ;
@@ -46,7 +46,7 @@ describe('BDD style (URL,EMAIL)', function() {
4646
4747
4848 it ( 'extractAllUrls' , function ( ) {
49- assert . deepEqual ( TextAreaApi . extractAllUrls ( textStr ) , [
49+ assert . deepEqual ( TextArea . extractAllUrls ( textStr ) , [
5050 {
5151 "value" : {
5252 "url" : "http://[::1]:8000" ,
@@ -311,7 +311,7 @@ describe('BDD style (URL,EMAIL)', function() {
311311 } ) ;
312312
313313 it ( 'extractAllUrlsWithIntranets' , function ( ) {
314- assert . deepEqual ( TextAreaApi . extractAllUrls ( textStr , { ipV4 : false , ipV6 :false , localhost : false , intranet : true } ) , [
314+ assert . deepEqual ( TextArea . extractAllUrls ( textStr , { ipV4 : false , ipV6 :false , localhost : false , intranet : true } ) , [
315315 {
316316 "value" : {
317317 "url" : "http://[::1]:8000" ,
@@ -635,7 +635,7 @@ describe('BDD style (URL,EMAIL)', function() {
635635 } ) ;
636636
637637 it ( 'extractAllEmails' , function ( ) {
638- assert . deepEqual ( TextAreaApi . extractAllEmails ( textStr , true ) , [
638+ assert . deepEqual ( TextArea . extractAllEmails ( textStr , true ) , [
639639 {
640640 "value" : {
641641 "email" : "가나다@apacbook.ac.kr" ,
@@ -724,7 +724,7 @@ describe('BDD style (URI)', function() {
724724 * @return array
725725 */
726726 it ( 'extractCertainUris' , function ( ) {
727- const uris = TextAreaApi . extractCertainUris (
727+ const uris = TextArea . extractCertainUris (
728728 sampleText2 ,
729729 [ [ '{number}' , 'kak' ] , [ 'nice' , 'guy' ] , [ 'abc' , '{number}' ] ] ,
730730 true
0 commit comments