Skip to content

Commit 2663972

Browse files
committed
Use Object.hasOwn
1 parent 187f3bb commit 2663972

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/importer.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ test("DirectoryImporter results structure", async () => {
4848
try {
4949
const results = await importer.importDirectory(testDir);
5050

51-
assert.ok(results.hasOwnProperty("total"));
52-
assert.ok(results.hasOwnProperty("successful"));
53-
assert.ok(results.hasOwnProperty("failed"));
54-
assert.ok(results.hasOwnProperty("skipped"));
55-
assert.ok(results.hasOwnProperty("documents"));
51+
assert.ok(Object.hasOwn(results, "total"));
52+
assert.ok(Object.hasOwn(results, "successful"));
53+
assert.ok(Object.hasOwn(results, "failed"));
54+
assert.ok(Object.hasOwn(results, "skipped"));
55+
assert.ok(Object.hasOwn(results, "documents"));
5656
assert.ok(Array.isArray(results.documents));
5757
} finally {
5858
// Cleanup

0 commit comments

Comments
 (0)