@@ -16,6 +16,10 @@ vows.describe('vows/assert').addBatch({
16
16
assert . length ( "hello world" , 11 ) ;
17
17
assert . length ( [ 1 , 2 , 3 ] , 3 ) ;
18
18
} ,
19
+ "`isDefined`" : function ( assert ) {
20
+ assert . isDefined ( null ) ;
21
+ assertError ( assert . isDefined , undefined ) ;
22
+ } ,
19
23
"`include`" : function ( assert ) {
20
24
assert . include ( "hello world" , "world" ) ;
21
25
assert . include ( [ 0 , 42 , 0 ] , 42 ) ;
@@ -78,6 +82,10 @@ vows.describe('vows/assert').addBatch({
78
82
assert . isUndefined ( undefined ) ;
79
83
assertError ( assert . isUndefined , null ) ;
80
84
} ,
85
+ "`isDefined`" : function ( assert ) {
86
+ assert . isDefined ( null ) ;
87
+ assertError ( assert . isDefined , undefined ) ;
88
+ } ,
81
89
"`isNull`" : function ( assert ) {
82
90
assert . isNull ( null ) ;
83
91
assertError ( assert . isNull , 0 ) ;
@@ -101,6 +109,14 @@ vows.describe('vows/assert').addBatch({
101
109
assert . isEmpty ( { } ) ;
102
110
assert . isEmpty ( [ ] ) ;
103
111
assert . isEmpty ( "" ) ;
112
+ } ,
113
+ "`isNotEmpty`" : function ( assert ) {
114
+ assert . isNotEmpty ( { goo :true } ) ;
115
+ assert . isNotEmpty ( [ 1 ] ) ;
116
+ assert . isNotEmpty ( " " ) ;
117
+ assertError ( assert . isNotEmpty , { } ) ;
118
+ assertError ( assert . isNotEmpty , [ ] ) ;
119
+ assertError ( assert . isNotEmpty , "" ) ;
104
120
}
105
121
}
106
122
} ) . export ( module ) ;
0 commit comments