File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments