Skip to content

Commit c7fecf0

Browse files
committed
9.1 patch release
1 parent ec1e905 commit c7fecf0

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

coderoad/test/packagejson.test.js

Lines changed: 4 additions & 18 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy