Skip to content

Commit 30b2592

Browse files
Use Chai's built-in .keys() method rather than Object.keys() + .members()
1 parent 7e212aa commit 30b2592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/specs/exports.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ describe("project-package-name package exports", () => {
2222
});
2323

2424
it("should not export anything else", () => {
25-
expect(Object.keys(commonJSExport)).to.have.same.members([
25+
expect(commonJSExport).to.have.same.keys(
2626
"default",
2727
"projectExportName",
28-
]);
28+
);
2929
});
3030

3131
});

0 commit comments

Comments
 (0)