@eslinted/core 5.1.2 → 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 +9 -2
- package/dist/scopes.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/scopes.spec.ts +9 -2
package/dist/scopes.spec.js
CHANGED
@@ -4,24 +4,31 @@ 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
9
|
});
|
10
10
|
});
|
11
11
|
describe("order", function () {
|
12
12
|
it("jsonc > json", function () {
|
13
|
+
expect(scopes)
|
14
|
+
.includes.members(["jsonc", "json"]);
|
13
15
|
expect(scopes.indexOf("jsonc"))
|
14
16
|
.greaterThan(scopes.indexOf("json"));
|
15
17
|
});
|
16
18
|
it("ts > js", function () {
|
19
|
+
expect(scopes)
|
20
|
+
.includes.members(["ts", "js"]);
|
17
21
|
expect(scopes.indexOf("ts"))
|
18
22
|
.greaterThan(scopes.indexOf("js"));
|
19
23
|
});
|
20
24
|
it("mocha > ts", function () {
|
25
|
+
expect(scopes)
|
26
|
+
.includes.members(["mocha", "ts"]);
|
21
27
|
expect(scopes.indexOf("mocha"))
|
22
28
|
.greaterThan(scopes.indexOf("ts"));
|
23
29
|
});
|
24
30
|
it("svelte > ts", function () {
|
31
|
+
expect(scopes).includes.members(["svelte", "ts"]);
|
25
32
|
expect(scopes.indexOf("svelte"))
|
26
33
|
.greaterThan(scopes.indexOf("ts"));
|
27
34
|
});
|
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,QAAQ,CAAC,QAAQ,EA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X,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,24 +5,31 @@ 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
10
|
});
|
11
11
|
});
|
12
12
|
describe("order", function () {
|
13
13
|
it("jsonc > json", function () {
|
14
|
+
expect(scopes)
|
15
|
+
.includes.members(["jsonc", "json"]);
|
14
16
|
expect(scopes.indexOf("jsonc"))
|
15
17
|
.greaterThan(scopes.indexOf("json"));
|
16
18
|
});
|
17
19
|
it("ts > js", function () {
|
20
|
+
expect(scopes)
|
21
|
+
.includes.members(["ts", "js"]);
|
18
22
|
expect(scopes.indexOf("ts"))
|
19
23
|
.greaterThan(scopes.indexOf("js"));
|
20
24
|
});
|
21
25
|
it("mocha > ts", function () {
|
26
|
+
expect(scopes)
|
27
|
+
.includes.members(["mocha", "ts"]);
|
22
28
|
expect(scopes.indexOf("mocha"))
|
23
29
|
.greaterThan(scopes.indexOf("ts"));
|
24
30
|
});
|
25
31
|
it("svelte > ts", function () {
|
32
|
+
expect(scopes).includes.members(["svelte", "ts"]);
|
26
33
|
expect(scopes.indexOf("svelte"))
|
27
34
|
.greaterThan(scopes.indexOf("ts"));
|
28
35
|
});
|