Skip to content

Commit 9cfe1fe

Browse files
committed
4.1 keywords
1 parent dbbdf52 commit 9cfe1fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎coderoad/test/packagejson.test.js

+12
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,16 @@ describe("package.json", () => {
2424
'should have a "description" value that is a string'
2525
);
2626
});
27+
// 1.3
28+
it('should have a valid "keywords" key', () => {
29+
assert.ok(json.keywords, '"keywords" is missing');
30+
assert.ok(
31+
Array.isArray(json.keywords),
32+
'should have a "keywords" value that is an array'
33+
);
34+
assert.ok(
35+
json.keywords.includes("freecodecamp"),
36+
'should include "freecodecamp"'
37+
);
38+
});
2739
});

0 commit comments

Comments
 (0)