@eslinted/core 5.1.2 → 5.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- .to.be.an("array")
8
- .that.has.lengthOf.at.least(1);
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
  });
@@ -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,EAAE;IACjB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,sBAAsB,EAAE;YACzB,MAAM,CAAC,MAAM,CAAC;iBACX,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC;iBACjB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,CA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AAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.10.0",
3
3
  "name": "@eslinted/core",
4
- "version": "5.1.2",
4
+ "version": "5.1.4",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -33,7 +33,7 @@
33
33
  "@types/chai": "^5.0.1",
34
34
  "@types/mocha": "^10.0.9",
35
35
  "chai": "^5.1.2",
36
- "mocha": "^10.8.1",
36
+ "mocha": "^10.8.2",
37
37
  "npm-run-all": "^4.1.5",
38
38
  "run-script-os": "^1.1.6",
39
39
  "ts-add-js-extension": "^1.6.4",
@@ -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
- .to.be.an("array")
9
- .that.has.lengthOf.at.least(1);
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
  });