File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,37 @@ describe('AccountHttp', () => {
378378 * House Keeping
379379 * =========================
380380 */
381+ describe ( 'Remove test AddressAlias' , ( ) => {
382+ let listener : Listener ;
383+ before ( ( ) => {
384+ listener = new Listener ( config . apiUrl ) ;
385+ return listener . open ( ) ;
386+ } ) ;
387+ after ( ( ) => {
388+ return listener . close ( ) ;
389+ } ) ;
390+
391+ it ( 'Announce addressAliasTransaction' , ( done ) => {
392+ const addressAliasTransaction = AddressAliasTransaction . create (
393+ Deadline . create ( ) ,
394+ AliasActionType . Unlink ,
395+ namespaceId ,
396+ account . address ,
397+ NetworkType . MIJIN_TEST ,
398+ ) ;
399+ const signedTransaction = addressAliasTransaction . signWith ( account ) ;
381400
401+ listener . confirmed ( account . address ) . subscribe ( ( transaction ) => {
402+ done ( ) ;
403+ } ) ;
404+ listener . status ( account . address ) . subscribe ( ( error ) => {
405+ console . log ( 'Error:' , error ) ;
406+ assert ( false ) ;
407+ done ( ) ;
408+ } ) ;
409+ transactionHttp . announce ( signedTransaction ) ;
410+ } ) ;
411+ } ) ;
382412 describe ( 'Remove test AccountProperty - Address' , ( ) => {
383413 let listener : Listener ;
384414 before ( ( ) => {
You can’t perform that action at this time.
0 commit comments