Skip to content

Commit db32327

Browse files
committed
run oxfmt
1 parent 16e2581 commit db32327

57 files changed

Lines changed: 5725 additions & 5404 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,50 @@
1-
import attribute from '../../dist/selectors/attribute.js';
2-
import {test} from './util/helpers.mjs';
1+
import attribute from "../../dist/selectors/attribute.js";
2+
import { test } from "./util/helpers.mjs";
33
const Attribute = attribute.default;
44

55
function waitForWarning() {
6-
return new Promise((resolve) => {
7-
process.once('warning', (err) => {
8-
resolve(err);
9-
});
6+
return new Promise((resolve) => {
7+
process.once("warning", (err) => {
8+
resolve(err);
109
});
10+
});
1111
}
1212

13-
test.serial('deprecated constructor', '', (t) => {
14-
const warningWaiter = waitForWarning();
13+
test.serial("deprecated constructor", "", (t) => {
14+
const warningWaiter = waitForWarning();
1515

16-
new Attribute({ value: '"foo"', attribute: "data-bar" });
16+
new Attribute({ value: '"foo"', attribute: "data-bar" });
1717

18-
return warningWaiter.then((warning) => {
19-
t.deepEqual(warning.message, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");
20-
});
18+
return warningWaiter.then((warning) => {
19+
t.deepEqual(
20+
warning.message,
21+
"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.",
22+
);
23+
});
2124
});
2225

23-
test.serial('deprecated get of raws.unquoted ', '', (t) => {
24-
const warningWaiter = waitForWarning();
26+
test.serial("deprecated get of raws.unquoted ", "", (t) => {
27+
const warningWaiter = waitForWarning();
2528

26-
let attr = new Attribute({ value: 'foo', quoteMark: '"', attribute: "data-bar" });
27-
// eslint-disable-next-line no-unused-expressions -- accessing the getter triggers the deprecation warning under test
28-
attr.raws.unquoted;
29+
let attr = new Attribute({ value: "foo", quoteMark: '"', attribute: "data-bar" });
30+
// eslint-disable-next-line no-unused-expressions -- accessing the getter triggers the deprecation warning under test
31+
attr.raws.unquoted;
2932

30-
return warningWaiter.then((warning) => {
31-
t.deepEqual(warning.message, "attr.raws.unquoted is deprecated. Call attr.value instead.");
32-
});
33+
return warningWaiter.then((warning) => {
34+
t.deepEqual(warning.message, "attr.raws.unquoted is deprecated. Call attr.value instead.");
35+
});
3336
});
3437

35-
test.serial('deprecated set of raws.unquoted ', '', (t) => {
36-
const warningWaiter = waitForWarning();
38+
test.serial("deprecated set of raws.unquoted ", "", (t) => {
39+
const warningWaiter = waitForWarning();
3740

38-
let attr = new Attribute({ value: 'foo', quoteMark: '"', attribute: "data-bar" });
39-
attr.raws.unquoted = 'fooooo';
41+
let attr = new Attribute({ value: "foo", quoteMark: '"', attribute: "data-bar" });
42+
attr.raws.unquoted = "fooooo";
4043

41-
return warningWaiter.then((warning) => {
42-
t.deepEqual(warning.message, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.");
43-
});
44+
return warningWaiter.then((warning) => {
45+
t.deepEqual(
46+
warning.message,
47+
"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.",
48+
);
49+
});
4450
});

0 commit comments

Comments
 (0)