Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bcac25 commit c7b5458Copy full SHA for c7b5458
test/packagejson.test.js
@@ -71,4 +71,25 @@ describe("package.json", () => {
71
)
72
);
73
});
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
95
0 commit comments