Skip to content

Commit 9652bd6

Browse files
committed
5.1 license
1 parent 7212e90 commit 9652bd6

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
@@ -36,4 +36,13 @@ describe("package.json", () => {
3636
'should include "freecodecamp"'
3737
);
3838
});
39+
// 1.4
40+
it('should have a valid "license" key', () => {
41+
assert.ok(json.license, '"license" is missing');
42+
assert.equal(
43+
typeof json.license,
44+
"string",
45+
'should have a "license" value that is a string, e.g. "MIT"'
46+
);
47+
});
3948
});

0 commit comments

Comments
 (0)