@@ -73,23 +73,6 @@ describe('unexpected-dom', function () {
73
73
expect ( err . output . toString ( ) , 'to be' , 'expected <button class="bar" data-info="baz" disabled="" id="foo"/> to have attributes \'id\', \'foo\'' ) ;
74
74
} ) ;
75
75
} ) ;
76
-
77
- it ( 'should match negative arguments' , function ( ) {
78
- this . body . innerHTML = '<button id="foo" class="bar" data-info="baz" disabled>Press me</button>' ;
79
-
80
- expect ( this . body . firstChild , 'not to have attributes' , 'foo' , 'bar' ) ;
81
- } ) ;
82
-
83
- it ( 'should fail on negative partial arguments met' , function ( ) {
84
- this . body . innerHTML = '<button id="foo" class="bar" data-info="baz" disabled>Press me</button>' ;
85
- var el = this . body . firstChild ;
86
-
87
- expect ( function ( ) {
88
- expect ( el , 'not to have attributes' , 'id' ) ;
89
- } , 'to throw exception' , function ( err ) {
90
- expect ( err . output . toString ( ) , 'to be' , 'expected <button class="bar" data-info="baz" disabled="" id="foo"/> not to have attributes \'id\'' ) ;
91
- } ) ;
92
- } ) ;
93
76
} ) ;
94
77
95
78
describe ( 'array comparison' , function ( ) {
@@ -126,23 +109,6 @@ describe('unexpected-dom', function () {
126
109
expect ( err . output . toString ( ) , 'to be' , 'expected <button class="bar" data-info="baz" disabled="" id="foo"/> to have attributes [ \'id\', \'foo\' ]' ) ;
127
110
} ) ;
128
111
} ) ;
129
-
130
- it ( 'should match negative arguments' , function ( ) {
131
- this . body . innerHTML = '<button id="foo" class="bar" data-info="baz" disabled>Press me</button>' ;
132
-
133
- expect ( this . body . firstChild , 'not to have attributes' , [ 'foo' , 'bar' ] ) ;
134
- } ) ;
135
-
136
- it ( 'should fail on negative partial arguments met' , function ( ) {
137
- this . body . innerHTML = '<button id="foo" class="bar" data-info="baz" disabled>Press me</button>' ;
138
- var el = this . body . firstChild ;
139
-
140
- expect ( function ( ) {
141
- expect ( el , 'not to have attributes' , [ 'id' ] ) ;
142
- } , 'to throw exception' , function ( err ) {
143
- expect ( err . output . toString ( ) , 'to be' , 'expected <button class="bar" data-info="baz" disabled="" id="foo"/> not to have attributes [ \'id\' ]' ) ;
144
- } ) ;
145
- } ) ;
146
112
} ) ;
147
113
} ) ;
148
114
0 commit comments