Skip to content

Commit a7779b3

Browse files
committed
Fix coverage
1 parent b6d31e4 commit a7779b3

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"prettify": "prettier --write '**/*.@(js|json|md)'",
1010
"precommit": "lint-staged",
1111
"build": "babel src --ignore *.spec.js --out-dir dist",
12-
"test": "jest",
12+
"test": "jest --coverage",
1313
"prepublish": "npm run build",
1414
"release": "npmpub"
1515
},

src/utils/sortRules.spec.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -215,16 +215,25 @@ describe("sortRules", () => {
215215
{
216216
type: "declaration",
217217
property: "bar",
218-
value: "3",
218+
value: "1",
219219
position: {
220-
start: { line: 3, column: 3 },
221-
end: { line: 3, column: 9 },
220+
start: { line: 11, column: 3 },
221+
end: { line: 11, column: 9 },
222+
},
223+
},
224+
{
225+
type: "declaration",
226+
property: "bar",
227+
value: "2",
228+
position: {
229+
start: { line: 12, column: 3 },
230+
end: { line: 12, column: 9 },
222231
},
223232
},
224233
],
225234
position: {
226-
start: { line: 2, column: 1 },
227-
end: { line: 4, column: 2 },
235+
start: { line: 10, column: 1 },
236+
end: { line: 13, column: 2 },
228237
},
229238
},
230239
{
@@ -253,25 +262,16 @@ describe("sortRules", () => {
253262
{
254263
type: "declaration",
255264
property: "bar",
256-
value: "1",
257-
position: {
258-
start: { line: 11, column: 3 },
259-
end: { line: 11, column: 9 },
260-
},
261-
},
262-
{
263-
type: "declaration",
264-
property: "bar",
265-
value: "2",
265+
value: "3",
266266
position: {
267-
start: { line: 12, column: 3 },
268-
end: { line: 12, column: 9 },
267+
start: { line: 3, column: 3 },
268+
end: { line: 3, column: 9 },
269269
},
270270
},
271271
],
272272
position: {
273-
start: { line: 10, column: 1 },
274-
end: { line: 13, column: 2 },
273+
start: { line: 2, column: 1 },
274+
end: { line: 4, column: 2 },
275275
},
276276
},
277277
]),

0 commit comments

Comments
 (0)