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 72b8fa6 commit 6b0d618Copy full SHA for 6b0d618
coderoad/test/packagejson.test.js
@@ -63,19 +63,11 @@ describe("package.json", () => {
63
'should have a "dependencies" value that is an object'
64
);
65
});
66
- it('should have installed "moment"', async () => {
+ // 2.5
67
+ it('should remove the dependency "moment"', () => {
68
assert.ok(
- await doesNotThrow(
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 "^"'
+ !json.dependencies.moment,
+ '"moment" should be removed as a dependency'
79
80
81
0 commit comments