File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -46,30 +46,18 @@ describe('Module: angularjs-input-tags -', () => {
46
46
expect ( ctrl . tags . length ) . toBe ( 1 ) ;
47
47
} ) ;
48
48
49
- it ( 'should ' , ( ) => {
49
+ it ( 'should display autocomplete on focus ' , ( ) => {
50
50
ctrl . $onInit ( ) ;
51
51
ctrl . triggerFocus ( ) ;
52
52
expect ( ctrl . autocompleteVisible ) . toBe ( true ) ;
53
53
} ) ;
54
54
55
- it ( 'should ' , ( ) => {
55
+ it ( 'should hide autocomplete on blur ' , ( ) => {
56
56
ctrl . $onInit ( ) ;
57
57
ctrl . triggerBlur ( ) ;
58
58
expect ( ctrl . autocompleteVisible ) . toBe ( false ) ;
59
59
} ) ;
60
60
61
- it ( 'should ' , ( ) => {
62
- ctrl . $onInit ( ) ;
63
- ctrl . getTagText ( { text : 'test' } ) ;
64
- expect ( ctrl . autocompleteVisible ) . toBe ( false ) ;
65
- } ) ;
66
-
67
- it ( 'should ' , ( ) => {
68
- ctrl . $onInit ( ) ;
69
- const result = ctrl . track ( { text : '1' } ) ;
70
- expect ( result ) . toBe ( '1' ) ;
71
- } ) ;
72
-
73
61
it ( 'should emit `onTagRemoving` event' , ( ) => {
74
62
ctrl . $onInit ( ) ;
75
63
ctrl . tags = [ 'Demo' ] ;
You can’t perform that action at this time.
0 commit comments