Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb4f94fa

Browse files
committed
9.1 patch release
1 parentc38b20b commitb4f94fa

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-
awaitdoesNotThrow(
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)

[8]ページ先頭

©2009-2025 Movatter.jp