Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6b8e6ef

Browse files
committed
4.1 keywords
1 parentee7a7af commit6b8e6ef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎coderoad/test/packagejson.test.js

Lines changed: 12 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp