Skip to content

Commit b4f94fa

Browse files
committed
9.1 patch release
1 parent c38b20b commit b4f94fa

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

‎coderoad/test/packagejson.test.js

+4-18
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,11 @@ 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 () => {
74+
// 2.3
75+
it('should allow npm to update to any patch release of "moment"', () => {
8376
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-
)
77+
json.dependencies.moment.match(/^~/),
78+
'"moment" should specify a patch release with "~"'
9379
);
9480
});
9581
});

0 commit comments

Comments
 (0)