1- import { IterableEmbeddedMessageElementsButton } from '../embedded/classes/IterableEmbeddedMessageElementsButton ' ;
1+ import { IterableEmbeddedMessageButton } from '../embedded/classes/IterableEmbeddedMessageButton ' ;
22import { Iterable } from '../core/classes/Iterable' ;
33
44describe ( 'IterableEmbeddedMessageButton' , ( ) => {
@@ -13,9 +13,9 @@ describe('IterableEmbeddedMessageButton', () => {
1313 action : { type : 'openUrl' , data : 'https://example.com' } ,
1414 } ;
1515
16- const button = new IterableEmbeddedMessageElementsButton ( dict ) ;
16+ const button = new IterableEmbeddedMessageButton ( dict ) ;
1717
18- expect ( button ) . toBeInstanceOf ( IterableEmbeddedMessageElementsButton ) ;
18+ expect ( button ) . toBeInstanceOf ( IterableEmbeddedMessageButton ) ;
1919 expect ( button . id ) . toBe ( 'button-123' ) ;
2020 expect ( button . title ) . toBe ( 'Click Me!' ) ;
2121 expect ( button . action ) . toBeInstanceOf ( Object ) ;
@@ -28,9 +28,9 @@ describe('IterableEmbeddedMessageButton', () => {
2828
2929 const dict = { id : 'button-123' } ;
3030
31- const button = new IterableEmbeddedMessageElementsButton ( dict ) ;
31+ const button = new IterableEmbeddedMessageButton ( dict ) ;
3232
33- expect ( button ) . toBeInstanceOf ( IterableEmbeddedMessageElementsButton ) ;
33+ expect ( button ) . toBeInstanceOf ( IterableEmbeddedMessageButton ) ;
3434 expect ( button . id ) . toBe ( 'button-123' ) ;
3535 expect ( button . title ) . toBeUndefined ( ) ;
3636 expect ( button . action ) . toBeUndefined ( ) ;
@@ -44,9 +44,9 @@ describe('IterableEmbeddedMessageButton', () => {
4444 title : 'Click Me!' ,
4545 } ;
4646
47- const button = new IterableEmbeddedMessageElementsButton ( dict ) ;
47+ const button = new IterableEmbeddedMessageButton ( dict ) ;
4848
49- expect ( button ) . toBeInstanceOf ( IterableEmbeddedMessageElementsButton ) ;
49+ expect ( button ) . toBeInstanceOf ( IterableEmbeddedMessageButton ) ;
5050 expect ( button . id ) . toBe ( 'button-123' ) ;
5151 expect ( button . title ) . toBe ( 'Click Me!' ) ;
5252 expect ( button . action ) . toBeUndefined ( ) ;
@@ -60,7 +60,7 @@ describe('IterableEmbeddedMessageButton', () => {
6060 action : { type : 'openUrl' , data : 'https://example.com' } ,
6161 } ;
6262 // @ts -expect-error - id is purposely missing
63- expect ( ( ) => new IterableEmbeddedMessageElementsButton ( dict ) ) . toThrow (
63+ expect ( ( ) => new IterableEmbeddedMessageButton ( dict ) ) . toThrow (
6464 'id is required'
6565 ) ;
6666 } ) ;
@@ -75,9 +75,9 @@ describe('IterableEmbeddedMessageButton', () => {
7575 action : { type : 'close' } ,
7676 } ;
7777
78- const button = new IterableEmbeddedMessageElementsButton ( dict ) ;
78+ const button = new IterableEmbeddedMessageButton ( dict ) ;
7979
80- expect ( button ) . toBeInstanceOf ( IterableEmbeddedMessageElementsButton ) ;
80+ expect ( button ) . toBeInstanceOf ( IterableEmbeddedMessageButton ) ;
8181 expect ( button . id ) . toBe ( 'button-123' ) ;
8282 expect ( button . action ) . toBeInstanceOf ( Object ) ;
8383 expect ( button . action ?. type ) . toBe ( 'close' ) ;
0 commit comments