Skip to content

Commit 1d2f583

Browse files
committed
3.1 description
1 parent 46794ca commit 1d2f583

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

coderoad/test/packagejson.test.js

+9
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,13 @@ describe("package.json", () => {
1515
'should have an "author" value that is a string'
1616
);
1717
});
18+
// 1.2
19+
it('should have a valid "description" key', () => {
20+
assert.ok(json.description, '"description" is missing');
21+
assert.equal(
22+
typeof json.description,
23+
"string",
24+
'should have a "description" value that is a string'
25+
);
26+
});
1827
});

0 commit comments

Comments
 (0)