Skip to content

Commit

Permalink
chore: update dependency shelljs to ^0.8.5 (#600)
Browse files Browse the repository at this point in the history
chore: update dependency shelljs to v0.8.5
  • Loading branch information
fasttime authored Apr 25, 2024
1 parent bf2ea85 commit 18cfaca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"mocha": "^9.2.2",
"npm-run-all": "^4.1.5",
"rollup": "^2.41.2",
"shelljs": "^0.3.0",
"shelljs": "^0.8.5",
"yorkie": "^2.0.0"
},
"keywords": [
Expand Down
7 changes: 4 additions & 3 deletions tests/lib/libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import tester from "./tester.js";
import * as espree from "../../espree.js";
import assert from "assert";
import { fileURLToPath } from "url";
import { readFile } from "fs/promises";

// eslint-disable-next-line no-underscore-dangle -- Conventional
const __dirname = path.dirname(fileURLToPath(import.meta.url));
Expand All @@ -34,9 +35,9 @@ describe("Libraries", () => {

// var filename = "angular-1.2.5.js";

it("should produce correct AST when parsed", () => {
const output = shelljs.cat(`${filename}.result.json`);
const input = shelljs.cat(filename);
it("should produce correct AST when parsed", async () => {
const output = await readFile(`${filename}.result.json`, "utf-8");
const input = await readFile(filename, "utf-8");
const result = JSON.stringify(tester.getRaw(espree.parse(input, {
ecmaVersion: 5,
loc: true,
Expand Down

0 comments on commit 18cfaca

Please sign in to comment.