@@ -210,13 +210,15 @@ describe('verifyAddrsByAccount', function () {
210210 )
211211 expect ( isValid ) . toBe ( true )
212212 } )
213+
213214 it ( 'should work' , async function ( ) {
214215 const isValid = await dotbitTest . verifyAddrsByAccount (
215216 '0xC72B6f66017246d6A7f159F5C2BF358188AD9ECa' ,
216217 'leonx.bit' ,
217218 )
218219 expect ( isValid ) . toBe ( true )
219220 } )
221+
220222 it ( 'should work' , async function ( ) {
221223 const isValid = await dotbitTest . verifyAddrsByAccount (
222224 '0xC72B6f66017246d6A7f159F5C2BF358188AD9ECa' ,
@@ -225,6 +227,7 @@ describe('verifyAddrsByAccount', function () {
225227 )
226228 expect ( isValid ) . toBe ( false )
227229 } )
230+
228231 it ( 'should work' , async function ( ) {
229232 const isValid = await dotbitTest . verifyAddrsByAccount (
230233 '0xC72B6f66017246d6A7f159F5C2BF358188AD9ECa' ,
@@ -233,13 +236,15 @@ describe('verifyAddrsByAccount', function () {
233236 )
234237 expect ( isValid ) . toBe ( false )
235238 } )
239+
236240 it ( 'should work' , async function ( ) {
237241 const isValid = await dotbitTest . verifyAddrsByAccount (
238242 '0xC72B6f66017246d6A7f159F5C2BF358188AD9ECa' ,
239243 '123.bit' ,
240244 )
241245 expect ( isValid ) . toBe ( false )
242246 } )
247+
243248 it ( 'should work' , async function ( ) {
244249 const isValid = await dotbitTest . verifyAddrsByAccount (
245250 '0xC72B6f66017246d6A7f159F5C2BF358188AD9ECa' ,
@@ -250,3 +255,11 @@ describe('verifyAddrsByAccount', function () {
250255 expect ( isValid ) . toBe ( true )
251256 } )
252257} )
258+
259+ describe ( 'validDotbitAliasAddresses' , function ( ) {
260+ it ( 'should work' , async function ( ) {
261+ const addresses = await dotbitProd . validDotbitAliasAddresses ( 'imac.bit' )
262+ expect ( addresses ) . toBeInstanceOf ( Array )
263+ expect ( addresses . length ) . toBe ( 0 )
264+ } )
265+ } )
0 commit comments