Skip to content

Commit f671185

Browse files
committed
chore: bump Jest ESLint plugin
1 parent cb59ff5 commit f671185

17 files changed

+280
-275
lines changed

__tests__/api/base.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('base tag', () => {
5555

5656
expect(firstTag).toBeInstanceOf(Element);
5757
expect(firstTag.getAttribute).toBeDefined();
58-
expect(firstTag.getAttribute('href')).toEqual('http://mysite.com/public');
58+
expect(firstTag.getAttribute('href')).toBe('http://mysite.com/public');
5959
expect(firstTag.outerHTML).toMatchSnapshot();
6060
});
6161

@@ -131,7 +131,7 @@ describe('base tag', () => {
131131

132132
expect(firstTag).toBeInstanceOf(Element);
133133
expect(firstTag.getAttribute).toBeDefined();
134-
expect(firstTag.getAttribute('href')).toEqual('http://mysite.com/public');
134+
expect(firstTag.getAttribute('href')).toBe('http://mysite.com/public');
135135
expect(firstTag.outerHTML).toMatchSnapshot();
136136
});
137137

__tests__/api/bodyAttributes.test.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ describe('body attributes', () => {
5959

6060
const bodyTag = document.body;
6161

62-
expect(bodyTag.getAttribute('class')).toEqual('myClassName');
63-
expect(bodyTag.getAttribute('tabindex')).toEqual('-1');
64-
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toEqual('class,tabindex');
62+
expect(bodyTag.getAttribute('class')).toBe('myClassName');
63+
expect(bodyTag.getAttribute('tabindex')).toBe('-1');
64+
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toBe('class,tabindex');
6565
});
6666

6767
it('sets attributes based on the deepest nested component', () => {
@@ -78,8 +78,8 @@ describe('body attributes', () => {
7878

7979
const bodyTag = document.body;
8080

81-
expect(bodyTag.getAttribute('lang')).toEqual('ja');
82-
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toEqual('lang');
81+
expect(bodyTag.getAttribute('lang')).toBe('ja');
82+
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toBe('lang');
8383
});
8484

8585
it('handles valueless attributes', () => {
@@ -91,8 +91,8 @@ describe('body attributes', () => {
9191

9292
const bodyTag = document.body;
9393

94-
expect(bodyTag.getAttribute('hidden')).toEqual('true');
95-
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toEqual('hidden');
94+
expect(bodyTag.getAttribute('hidden')).toBe('true');
95+
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toBe('hidden');
9696
});
9797

9898
it('clears body attributes that are handled within helmet', () => {
@@ -127,10 +127,10 @@ describe('body attributes', () => {
127127
const bodyTag = document.body;
128128

129129
expect(bodyTag.getAttribute('hidden')).toBeNull();
130-
expect(bodyTag.getAttribute('lang')).toEqual('ja');
131-
expect(bodyTag.getAttribute('id')).toEqual('body-tag');
132-
expect(bodyTag.getAttribute('title')).toEqual('body tag');
133-
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toEqual('lang,id,title');
130+
expect(bodyTag.getAttribute('lang')).toBe('ja');
131+
expect(bodyTag.getAttribute('id')).toBe('body-tag');
132+
expect(bodyTag.getAttribute('title')).toBe('body tag');
133+
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toBe('lang,id,title');
134134
});
135135

136136
it('updates with multiple additions and removals - all new', () => {
@@ -150,9 +150,9 @@ describe('body attributes', () => {
150150

151151
expect(bodyTag.getAttribute('hidden')).toBeNull();
152152
expect(bodyTag.getAttribute('lang')).toBeNull();
153-
expect(bodyTag.getAttribute('id')).toEqual('body-tag');
154-
expect(bodyTag.getAttribute('title')).toEqual('body tag');
155-
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toEqual('id,title');
153+
expect(bodyTag.getAttribute('id')).toBe('body-tag');
154+
expect(bodyTag.getAttribute('title')).toBe('body tag');
155+
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toBe('id,title');
156156
});
157157

158158
describe('initialized outside of helmet', () => {
@@ -166,7 +166,7 @@ describe('body attributes', () => {
166166

167167
const bodyTag = document.body;
168168

169-
expect(bodyTag.getAttribute('test')).toEqual('test');
169+
expect(bodyTag.getAttribute('test')).toBe('test');
170170
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toBeNull();
171171
});
172172

@@ -179,8 +179,8 @@ describe('body attributes', () => {
179179

180180
const bodyTag = document.body;
181181

182-
expect(bodyTag.getAttribute('test')).toEqual('helmet-attr');
183-
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toEqual('test');
182+
expect(bodyTag.getAttribute('test')).toBe('helmet-attr');
183+
expect(bodyTag.getAttribute(HELMET_ATTRIBUTE)).toBe('test');
184184
});
185185

186186
it('attributes are cleared once managed in helmet', () => {

__tests__/api/htmlAttributes.test.js

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)