@@ -26,7 +26,7 @@ contract('Bouncer', ([_, owner, anyone, bouncerAddress, authorizedUser]) => {
2626
2727 it ( 'allows the owner to add a bouncer' , async function ( ) {
2828 await this . bouncer . addBouncer ( bouncerAddress , { from : owner } ) ;
29- ( await this . bouncer . hasRole ( bouncerAddress , this . roleBouncer ) ) . should . equal ( true ) ;
29+ ( await this . bouncer . hasRole ( bouncerAddress , this . roleBouncer ) ) . should . be . true ;
3030 } ) ;
3131
3232 it ( 'does not allow adding an invalid address' , async function ( ) {
@@ -39,7 +39,7 @@ contract('Bouncer', ([_, owner, anyone, bouncerAddress, authorizedUser]) => {
3939 await this . bouncer . addBouncer ( bouncerAddress , { from : owner } ) ;
4040
4141 await this . bouncer . removeBouncer ( bouncerAddress , { from : owner } ) ;
42- ( await this . bouncer . hasRole ( bouncerAddress , this . roleBouncer ) ) . should . equal ( false ) ;
42+ ( await this . bouncer . hasRole ( bouncerAddress , this . roleBouncer ) ) . should . be . false ;
4343 } ) ;
4444
4545 it ( 'does not allow anyone to add a bouncer' , async function ( ) {
@@ -168,77 +168,77 @@ contract('Bouncer', ([_, owner, anyone, bouncerAddress, authorizedUser]) => {
168168 context ( 'signature validation' , ( ) => {
169169 context ( 'plain signature' , ( ) => {
170170 it ( 'validates valid signature for valid user' , async function ( ) {
171- ( await this . bouncer . checkValidSignature ( authorizedUser , this . signFor ( authorizedUser ) ) ) . should . equal ( true ) ;
171+ ( await this . bouncer . checkValidSignature ( authorizedUser , this . signFor ( authorizedUser ) ) ) . should . be . true ;
172172 } ) ;
173173
174174 it ( 'does not validate invalid signature for valid user' , async function ( ) {
175- ( await this . bouncer . checkValidSignature ( authorizedUser , INVALID_SIGNATURE ) ) . should . equal ( false ) ;
175+ ( await this . bouncer . checkValidSignature ( authorizedUser , INVALID_SIGNATURE ) ) . should . be . false ;
176176 } ) ;
177177
178178 it ( 'does not validate valid signature for anyone' , async function ( ) {
179- ( await this . bouncer . checkValidSignature ( anyone , this . signFor ( authorizedUser ) ) ) . should . equal ( false ) ;
179+ ( await this . bouncer . checkValidSignature ( anyone , this . signFor ( authorizedUser ) ) ) . should . be . false ;
180180 } ) ;
181181
182182 it ( 'does not validate valid signature for method for valid user' , async function ( ) {
183183 ( await this . bouncer . checkValidSignature ( authorizedUser , this . signFor ( authorizedUser , 'checkValidSignature' ) )
184- ) . should . equal ( false ) ;
184+ ) . should . be . false ;
185185 } ) ;
186186 } ) ;
187187
188188 context ( 'method signature' , ( ) => {
189189 it ( 'validates valid signature with correct method for valid user' , async function ( ) {
190190 ( await this . bouncer . checkValidSignatureAndMethod ( authorizedUser ,
191191 this . signFor ( authorizedUser , 'checkValidSignatureAndMethod' ) )
192- ) . should . equal ( true ) ;
192+ ) . should . be . true ;
193193 } ) ;
194194
195195 it ( 'does not validate invalid signature with correct method for valid user' , async function ( ) {
196- ( await this . bouncer . checkValidSignatureAndMethod ( authorizedUser , INVALID_SIGNATURE ) ) . should . equal ( false ) ;
196+ ( await this . bouncer . checkValidSignatureAndMethod ( authorizedUser , INVALID_SIGNATURE ) ) . should . be . false ;
197197 } ) ;
198198
199199 it ( 'does not validate valid signature with correct method for anyone' , async function ( ) {
200200 ( await this . bouncer . checkValidSignatureAndMethod ( anyone ,
201201 this . signFor ( authorizedUser , 'checkValidSignatureAndMethod' ) )
202- ) . should . equal ( false ) ;
202+ ) . should . be . false ;
203203 } ) ;
204204
205205 it ( 'does not validate valid non-method signature with correct method for valid user' , async function ( ) {
206206 ( await this . bouncer . checkValidSignatureAndMethod ( authorizedUser , this . signFor ( authorizedUser ) )
207- ) . should . equal ( false ) ;
207+ ) . should . be . false ;
208208 } ) ;
209209 } ) ;
210210
211211 context ( 'method and data signature' , ( ) => {
212212 it ( 'validates valid signature with correct method and data for valid user' , async function ( ) {
213213 ( await this . bouncer . checkValidSignatureAndData ( authorizedUser , BYTES_VALUE , UINT_VALUE ,
214214 this . signFor ( authorizedUser , 'checkValidSignatureAndData' , [ authorizedUser , BYTES_VALUE , UINT_VALUE ] ) )
215- ) . should . equal ( true ) ;
215+ ) . should . be . true ;
216216 } ) ;
217217
218218 it ( 'does not validate invalid signature with correct method and data for valid user' , async function ( ) {
219219 ( await this . bouncer . checkValidSignatureAndData ( authorizedUser , BYTES_VALUE , UINT_VALUE , INVALID_SIGNATURE )
220- ) . should . equal ( false ) ;
220+ ) . should . be . false ;
221221 } ) ;
222222
223223 it ( 'does not validate valid signature with correct method and incorrect data for valid user' ,
224224 async function ( ) {
225225 ( await this . bouncer . checkValidSignatureAndData ( authorizedUser , BYTES_VALUE , UINT_VALUE + 10 ,
226226 this . signFor ( authorizedUser , 'checkValidSignatureAndData' , [ authorizedUser , BYTES_VALUE , UINT_VALUE ] ) )
227- ) . should . equal ( false ) ;
227+ ) . should . be . false ;
228228 }
229229 ) ;
230230
231231 it ( 'does not validate valid signature with correct method and data for anyone' , async function ( ) {
232232 ( await this . bouncer . checkValidSignatureAndData ( anyone , BYTES_VALUE , UINT_VALUE ,
233233 this . signFor ( authorizedUser , 'checkValidSignatureAndData' , [ authorizedUser , BYTES_VALUE , UINT_VALUE ] ) )
234- ) . should . equal ( false ) ;
234+ ) . should . be . false ;
235235 } ) ;
236236
237237 it ( 'does not validate valid non-method-data signature with correct method and data for valid user' ,
238238 async function ( ) {
239239 ( await this . bouncer . checkValidSignatureAndData ( authorizedUser , BYTES_VALUE , UINT_VALUE ,
240240 this . signFor ( authorizedUser , 'checkValidSignatureAndData' ) )
241- ) . should . equal ( false ) ;
241+ ) . should . be . false ;
242242 }
243243 ) ;
244244 } ) ;
0 commit comments