@@ -6,8 +6,6 @@ describe("An International Street lookup", function () {
66 const messages = {
77 countryRequired : "Country field is required." ,
88 freeformOrAddress1Required : "Either freeform or address1 is required." ,
9- insufficientInformation :
10- "Insufficient information: One or more required fields were not set on the lookup." ,
119 badGeocode : "Invalid input: geocode can only be set to 'true' (default is 'false'." ,
1210 invalidLanguage :
1311 "Invalid input: language can only be set to 'latin' or 'native'. When not set, the the output language will match the language of the input values." ,
@@ -28,29 +26,6 @@ describe("An International Street lookup", function () {
2826 ensureValidationThrows ( new Lookup ( "a" ) . ensureEnoughInfo , messages . freeformOrAddress1Required ) ;
2927 } ) ;
3028
31- it ( "rejects lookups with only a country and address 1." , function ( ) {
32- let lookup = new Lookup ( "a" ) ;
33- lookup . address1 = "b" ;
34-
35- ensureValidationThrows ( lookup . ensureEnoughInfo , messages . insufficientInformation ) ;
36- } ) ;
37-
38- it ( "rejects lookups with only a country, address 1, and locality." , function ( ) {
39- let lookup = new Lookup ( "a" ) ;
40- lookup . address1 = "b" ;
41- lookup . locality = "c" ;
42-
43- ensureValidationThrows ( lookup . ensureEnoughInfo , messages . insufficientInformation ) ;
44- } ) ;
45-
46- it ( "rejects lookups with only a country, address 1, and adminstrative area." , function ( ) {
47- let lookup = new Lookup ( "a" ) ;
48- lookup . address1 = "b" ;
49- lookup . administrativeArea = "c" ;
50-
51- ensureValidationThrows ( lookup . ensureEnoughInfo , messages . insufficientInformation ) ;
52- } ) ;
53-
5429 it ( "rejects lookups with an invalid geocode value." , function ( ) {
5530 let lookup = new Lookup ( ) ;
5631 lookup . geocode = "Blarg!" ;
@@ -70,16 +45,9 @@ describe("An International Street lookup", function () {
7045
7146 let lookup2 = new Lookup ( "a" ) ;
7247 lookup2 . address1 = "b" ;
73- lookup2 . postalCode = "c" ;
74-
75- let lookup3 = new Lookup ( "a" ) ;
76- lookup3 . address1 = "b" ;
77- lookup3 . locality = "c" ;
78- lookup3 . administrativeArea = "d" ;
7948
8049 expect ( lookup1 . ensureEnoughInfo ( ) ) . to . equal ( true ) ;
8150 expect ( lookup2 . ensureEnoughInfo ( ) ) . to . equal ( true ) ;
82- expect ( lookup3 . ensureEnoughInfo ( ) ) . to . equal ( true ) ;
8351 } ) ;
8452
8553 it ( "accepts lookups with a valid language." , function ( ) {
0 commit comments