@@ -22,9 +22,9 @@ describe('html attributes', () => {
2222
2323 const htmlTag = document . documentElement ;
2424
25- expect ( htmlTag . getAttribute ( 'class' ) ) . toEqual ( 'myClassName' ) ;
26- expect ( htmlTag . getAttribute ( 'lang' ) ) . toEqual ( 'en' ) ;
27- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'class,lang' ) ;
25+ expect ( htmlTag . getAttribute ( 'class' ) ) . toBe ( 'myClassName' ) ;
26+ expect ( htmlTag . getAttribute ( 'lang' ) ) . toBe ( 'en' ) ;
27+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'class,lang' ) ;
2828 } ) ;
2929
3030 it ( 'sets attributes based on the deepest nested component' , ( ) => {
@@ -45,8 +45,8 @@ describe('html attributes', () => {
4545
4646 const htmlTag = document . documentElement ;
4747
48- expect ( htmlTag . getAttribute ( 'lang' ) ) . toEqual ( 'ja' ) ;
49- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'lang' ) ;
48+ expect ( htmlTag . getAttribute ( 'lang' ) ) . toBe ( 'ja' ) ;
49+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'lang' ) ;
5050 } ) ;
5151
5252 it ( 'handles valueless attributes' , ( ) => {
@@ -60,8 +60,8 @@ describe('html attributes', () => {
6060
6161 const htmlTag = document . documentElement ;
6262
63- expect ( htmlTag . getAttribute ( 'amp' ) ) . toEqual ( '' ) ;
64- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'amp' ) ;
63+ expect ( htmlTag . getAttribute ( 'amp' ) ) . toBe ( '' ) ;
64+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'amp' ) ;
6565 } ) ;
6666
6767 it ( 'clears html attributes that are handled within helmet' , ( ) => {
@@ -106,10 +106,10 @@ describe('html attributes', () => {
106106 const htmlTag = document . documentElement ;
107107
108108 expect ( htmlTag . getAttribute ( 'amp' ) ) . toBeNull ( ) ;
109- expect ( htmlTag . getAttribute ( 'lang' ) ) . toEqual ( 'ja' ) ;
110- expect ( htmlTag . getAttribute ( 'id' ) ) . toEqual ( 'html-tag' ) ;
111- expect ( htmlTag . getAttribute ( 'title' ) ) . toEqual ( 'html tag' ) ;
112- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'lang,id,title' ) ;
109+ expect ( htmlTag . getAttribute ( 'lang' ) ) . toBe ( 'ja' ) ;
110+ expect ( htmlTag . getAttribute ( 'id' ) ) . toBe ( 'html-tag' ) ;
111+ expect ( htmlTag . getAttribute ( 'title' ) ) . toBe ( 'html tag' ) ;
112+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'lang,id,title' ) ;
113113 } ) ;
114114
115115 it ( 'updates with multiple additions and removals - all new' , ( ) => {
@@ -135,9 +135,9 @@ describe('html attributes', () => {
135135
136136 expect ( htmlTag . getAttribute ( 'amp' ) ) . toBeNull ( ) ;
137137 expect ( htmlTag . getAttribute ( 'lang' ) ) . toBeNull ( ) ;
138- expect ( htmlTag . getAttribute ( 'id' ) ) . toEqual ( 'html-tag' ) ;
139- expect ( htmlTag . getAttribute ( 'title' ) ) . toEqual ( 'html tag' ) ;
140- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'id,title' ) ;
138+ expect ( htmlTag . getAttribute ( 'id' ) ) . toBe ( 'html-tag' ) ;
139+ expect ( htmlTag . getAttribute ( 'title' ) ) . toBe ( 'html tag' ) ;
140+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'id,title' ) ;
141141 } ) ;
142142
143143 describe ( 'initialized outside of helmet' , ( ) => {
@@ -151,7 +151,7 @@ describe('html attributes', () => {
151151
152152 const htmlTag = document . documentElement ;
153153
154- expect ( htmlTag . getAttribute ( 'test' ) ) . toEqual ( 'test' ) ;
154+ expect ( htmlTag . getAttribute ( 'test' ) ) . toBe ( 'test' ) ;
155155 expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBeNull ( ) ;
156156 } ) ;
157157
@@ -166,8 +166,8 @@ describe('html attributes', () => {
166166
167167 const htmlTag = document . documentElement ;
168168
169- expect ( htmlTag . getAttribute ( 'test' ) ) . toEqual ( 'helmet-attr' ) ;
170- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'test' ) ;
169+ expect ( htmlTag . getAttribute ( 'test' ) ) . toBe ( 'helmet-attr' ) ;
170+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'test' ) ;
171171 } ) ;
172172
173173 it ( 'attributes are cleared once managed in helmet' , ( ) => {
@@ -199,9 +199,9 @@ describe('html attributes', () => {
199199
200200 const htmlTag = document . documentElement ;
201201
202- expect ( htmlTag . getAttribute ( 'class' ) ) . toEqual ( 'myClassName' ) ;
203- expect ( htmlTag . getAttribute ( 'lang' ) ) . toEqual ( 'en' ) ;
204- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'class,lang' ) ;
202+ expect ( htmlTag . getAttribute ( 'class' ) ) . toBe ( 'myClassName' ) ;
203+ expect ( htmlTag . getAttribute ( 'lang' ) ) . toBe ( 'en' ) ;
204+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'class,lang' ) ;
205205 } ) ;
206206
207207 it ( 'sets attributes based on the deepest nested component' , ( ) => {
@@ -218,8 +218,8 @@ describe('html attributes', () => {
218218
219219 const htmlTag = document . documentElement ;
220220
221- expect ( htmlTag . getAttribute ( 'lang' ) ) . toEqual ( 'ja' ) ;
222- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'lang' ) ;
221+ expect ( htmlTag . getAttribute ( 'lang' ) ) . toBe ( 'ja' ) ;
222+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'lang' ) ;
223223 } ) ;
224224
225225 it ( 'handles valueless attributes' , ( ) => {
@@ -231,8 +231,8 @@ describe('html attributes', () => {
231231
232232 const htmlTag = document . documentElement ;
233233
234- expect ( htmlTag . getAttribute ( 'amp' ) ) . toEqual ( 'true' ) ;
235- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'amp' ) ;
234+ expect ( htmlTag . getAttribute ( 'amp' ) ) . toBe ( 'true' ) ;
235+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'amp' ) ;
236236 } ) ;
237237
238238 it ( 'clears html attributes that are handled within helmet' , ( ) => {
@@ -267,10 +267,10 @@ describe('html attributes', () => {
267267 const htmlTag = document . documentElement ;
268268
269269 expect ( htmlTag . getAttribute ( 'amp' ) ) . toBeNull ( ) ;
270- expect ( htmlTag . getAttribute ( 'lang' ) ) . toEqual ( 'ja' ) ;
271- expect ( htmlTag . getAttribute ( 'id' ) ) . toEqual ( 'html-tag' ) ;
272- expect ( htmlTag . getAttribute ( 'title' ) ) . toEqual ( 'html tag' ) ;
273- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'lang,id,title' ) ;
270+ expect ( htmlTag . getAttribute ( 'lang' ) ) . toBe ( 'ja' ) ;
271+ expect ( htmlTag . getAttribute ( 'id' ) ) . toBe ( 'html-tag' ) ;
272+ expect ( htmlTag . getAttribute ( 'title' ) ) . toBe ( 'html tag' ) ;
273+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'lang,id,title' ) ;
274274 } ) ;
275275
276276 it ( 'updates with multiple additions and removals - all new' , ( ) => {
@@ -290,9 +290,9 @@ describe('html attributes', () => {
290290
291291 expect ( htmlTag . getAttribute ( 'amp' ) ) . toBeNull ( ) ;
292292 expect ( htmlTag . getAttribute ( 'lang' ) ) . toBeNull ( ) ;
293- expect ( htmlTag . getAttribute ( 'id' ) ) . toEqual ( 'html-tag' ) ;
294- expect ( htmlTag . getAttribute ( 'title' ) ) . toEqual ( 'html tag' ) ;
295- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'id,title' ) ;
293+ expect ( htmlTag . getAttribute ( 'id' ) ) . toBe ( 'html-tag' ) ;
294+ expect ( htmlTag . getAttribute ( 'title' ) ) . toBe ( 'html tag' ) ;
295+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'id,title' ) ;
296296 } ) ;
297297
298298 describe ( 'initialized outside of helmet' , ( ) => {
@@ -306,7 +306,7 @@ describe('html attributes', () => {
306306
307307 const htmlTag = document . documentElement ;
308308
309- expect ( htmlTag . getAttribute ( 'test' ) ) . toEqual ( 'test' ) ;
309+ expect ( htmlTag . getAttribute ( 'test' ) ) . toBe ( 'test' ) ;
310310 expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBeNull ( ) ;
311311 } ) ;
312312
@@ -319,8 +319,8 @@ describe('html attributes', () => {
319319
320320 const htmlTag = document . documentElement ;
321321
322- expect ( htmlTag . getAttribute ( 'test' ) ) . toEqual ( 'helmet-attr' ) ;
323- expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toEqual ( 'test' ) ;
322+ expect ( htmlTag . getAttribute ( 'test' ) ) . toBe ( 'helmet-attr' ) ;
323+ expect ( htmlTag . getAttribute ( HELMET_ATTRIBUTE ) ) . toBe ( 'test' ) ;
324324 } ) ;
325325
326326 it ( 'cleared once it is managed in helmet' , ( ) => {
0 commit comments