Skip to content

Commit dc7f47d

Browse files
committed
6.1 version
1 parent 060c075 commit dc7f47d

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
@@ -45,4 +45,13 @@ describe("package.json", () => {
4545
'should have a "license" value that is a string, e.g. "MIT"'
4646
);
4747
});
48+
// 1.5
49+
it('should have a valid "version" key', () => {
50+
assert.ok(json.version, '"version" is missing');
51+
assert.equal(
52+
typeof json.version,
53+
"string",
54+
'should have a "version" value that is a string'
55+
);
56+
});
4857
});

0 commit comments

Comments
 (0)