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

Commit6b0d618

Browse files
committed
11.1 remove moment
1 parent72b8fa6 commit6b0d618

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

‎coderoad/test/packagejson.test.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,11 @@ describe("package.json", () => {
6363
'should have a "dependencies" value that is an object'
6464
);
6565
});
66-
it('should have installed "moment"',async()=>{
66+
// 2.5
67+
it('should remove the dependency "moment"',()=>{
6768
assert.ok(
68-
awaitdoesNotThrow(
69-
()=>isModuleInstalled({name:"moment",type:"dependency"}),
70-
'"moment" not installed'
71-
)
72-
);
73-
});
74-
// 2.4
75-
it('should allow npm to update to any minor release of "moment"',()=>{
76-
assert.ok(
77-
json.dependencies.moment.match(/^\^/),
78-
'"moment" should specify a minor release with "^"'
69+
!json.dependencies.moment,
70+
'"moment" should be removed as a dependency'
7971
);
8072
});
8173
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp