Skip to content

Commit 4b6f2d3

Browse files
committed
fix formatting
1 parent da6f92b commit 4b6f2d3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

test/e2e/configuration.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ test.describe('Configuration options', () => {
4343

4444
page.on('console', msg => {
4545
const text = msg.text();
46-
if (text.startsWith('DEPRECATION:')) {return;} // ignore expected deprecation warnings
46+
if (text.startsWith('DEPRECATION:')) {
47+
return;
48+
} // ignore expected deprecation warnings
4749
consoleMsg = text;
4850
});
4951
page.on('pageerror', err => (errorMsg = err.message));

test/e2e/plugins.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ test.describe('Plugins', () => {
1818

1919
page.on('console', msg => {
2020
const text = msg.text();
21-
if (text.startsWith('DEPRECATION:')) {return;} // ignore expected deprecation warnings
21+
if (text.startsWith('DEPRECATION:')) {
22+
return;
23+
} // ignore expected deprecation warnings
2224
consoleMsgs.push(text);
2325
});
2426

@@ -170,8 +172,9 @@ test.describe('Plugins', () => {
170172
page.on('console', async msg => {
171173
for (const arg of msg.args()) {
172174
const val = await arg.jsonValue();
173-
if (typeof val === 'string' && val.startsWith('DEPRECATION:'))
174-
{continue;}
175+
if (typeof val === 'string' && val.startsWith('DEPRECATION:')) {
176+
continue;
177+
}
175178
try {
176179
const obj = typeof val === 'string' ? JSON.parse(val) : val;
177180
obj && obj.response && (routeData = obj);

0 commit comments

Comments
 (0)