@eslinted/core 5.1.1 → 5.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/scopes.spec.js +27 -2
- package/dist/scopes.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/scopes.spec.ts +27 -2
package/dist/scopes.spec.js
CHANGED
@@ -4,8 +4,33 @@ describe("Scopes", function () {
|
|
4
4
|
describe("shape", function () {
|
5
5
|
it("is a non-empty array", function () {
|
6
6
|
expect(scopes)
|
7
|
-
.
|
8
|
-
.
|
7
|
+
.an("array")
|
8
|
+
.with.lengthOf.at.least(1);
|
9
|
+
});
|
10
|
+
});
|
11
|
+
describe("order", function () {
|
12
|
+
it("jsonc > json", function () {
|
13
|
+
expect(scopes)
|
14
|
+
.includes.members(["jsonc", "json"]);
|
15
|
+
expect(scopes.indexOf("jsonc"))
|
16
|
+
.greaterThan(scopes.indexOf("json"));
|
17
|
+
});
|
18
|
+
it("ts > js", function () {
|
19
|
+
expect(scopes)
|
20
|
+
.includes.members(["ts", "js"]);
|
21
|
+
expect(scopes.indexOf("ts"))
|
22
|
+
.greaterThan(scopes.indexOf("js"));
|
23
|
+
});
|
24
|
+
it("mocha > ts", function () {
|
25
|
+
expect(scopes)
|
26
|
+
.includes.members(["mocha", "ts"]);
|
27
|
+
expect(scopes.indexOf("mocha"))
|
28
|
+
.greaterThan(scopes.indexOf("ts"));
|
29
|
+
});
|
30
|
+
it("svelte > ts", function () {
|
31
|
+
expect(scopes).includes.members(["svelte", "ts"]);
|
32
|
+
expect(scopes.indexOf("svelte"))
|
33
|
+
.greaterThan(scopes.indexOf("ts"));
|
9
34
|
});
|
10
35
|
});
|
11
36
|
});
|
package/dist/scopes.spec.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scopes.spec.js","sourceRoot":"","sources":["../src/scopes.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC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ACH,EAAE,CAAC,YAAY,EAAE;YACf,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAC7B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/scopes.spec.ts
CHANGED
@@ -5,8 +5,33 @@ describe("Scopes", function () {
|
|
5
5
|
describe("shape", function () {
|
6
6
|
it("is a non-empty array", function () {
|
7
7
|
expect(scopes)
|
8
|
-
.
|
9
|
-
.
|
8
|
+
.an("array")
|
9
|
+
.with.lengthOf.at.least(1);
|
10
|
+
});
|
11
|
+
});
|
12
|
+
describe("order", function () {
|
13
|
+
it("jsonc > json", function () {
|
14
|
+
expect(scopes)
|
15
|
+
.includes.members(["jsonc", "json"]);
|
16
|
+
expect(scopes.indexOf("jsonc"))
|
17
|
+
.greaterThan(scopes.indexOf("json"));
|
18
|
+
});
|
19
|
+
it("ts > js", function () {
|
20
|
+
expect(scopes)
|
21
|
+
.includes.members(["ts", "js"]);
|
22
|
+
expect(scopes.indexOf("ts"))
|
23
|
+
.greaterThan(scopes.indexOf("js"));
|
24
|
+
});
|
25
|
+
it("mocha > ts", function () {
|
26
|
+
expect(scopes)
|
27
|
+
.includes.members(["mocha", "ts"]);
|
28
|
+
expect(scopes.indexOf("mocha"))
|
29
|
+
.greaterThan(scopes.indexOf("ts"));
|
30
|
+
});
|
31
|
+
it("svelte > ts", function () {
|
32
|
+
expect(scopes).includes.members(["svelte", "ts"]);
|
33
|
+
expect(scopes.indexOf("svelte"))
|
34
|
+
.greaterThan(scopes.indexOf("ts"));
|
10
35
|
});
|
11
36
|
});
|
12
37
|
});
|