Skip to content

Commit 6b0d618

Browse files
committed
11.1 remove moment
1 parent 72b8fa6 commit 6b0d618

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-
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 "^"'
69+
!json.dependencies.moment,
70+
'"moment" should be removed as a dependency'
7971
);
8072
});
8173
});

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