Skip to content

Commit d75d588

Browse files
committed
8.1 semver
1 parent 506f466 commit d75d588

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎coderoad/test/packagejson.test.js

+21
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,25 @@ describe("package.json", () => {
7171
)
7272
);
7373
});
74+
// 2.2
75+
it('should use specific version of "moment"', () => {
76+
assert.equal(
77+
json.dependencies.moment,
78+
"2.10.2",
79+
'"moment" should use the specific version'
80+
);
81+
});
82+
it('should have installed specific version of "moment"', async () => {
83+
assert.ok(
84+
await doesNotThrow(
85+
() =>
86+
isModuleInstalled({
87+
name: "moment",
88+
type: "dependency",
89+
version: "2.10.2"
90+
}),
91+
'"moment" not installed'
92+
)
93+
);
94+
});
7495
});

0 commit comments

Comments
 (0)