Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jalal246 committed May 6, 2020
1 parent fe7f835 commit f830727
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 1 deletion.
Empty file.
1 change: 1 addition & 0 deletions test/fixtures/empty-json/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions test/fixtures/invlaid-json/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
""
Empty file.
Empty file.
Empty file added test/fixtures/no-json/index.js
Empty file.
2 changes: 1 addition & 1 deletion test/getJsonByPath.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe("getJsonByPath", () => {
const { json, pkgInfo, unfoundJson } = getJsonByPath(...rootPath);

expect(json.length).to.be.equal(6);
expect(unfoundJson.length).to.be.equal(1);
expect(unfoundJson.length).to.be.equal(4);

json.forEach(({ name }) => {
expect(name).to.be.an("string");
Expand Down

0 comments on commit f830727

Please sign in to comment.