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", () => {
71
71
)
72
72
) ;
73
73
} ) ;
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"' , ( ) => {
83
76
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 "~"'
93
79
) ;
94
80
} ) ;
95
81
} ) ;
You can’t perform that action at this time.
0 commit comments