@@ -51,7 +51,14 @@ describe("HTTP protocol", function () {
5151
5252 request ( url , function ( e , r , body ) {
5353 sinon . assert . calledWith ( spy , "file:changed" ) ;
54- sinon . assert . calledWithExactly ( spy , "file:changed" , { path : "core.min.css" , log : true , namespace : "core" , event : "change" } ) ;
54+ sinon . assert . calledWithExactly ( spy , "file:changed" , {
55+ path : "core.min.css" ,
56+ basename : "core.min.css" ,
57+ ext : "css" ,
58+ log : true ,
59+ namespace : "core" ,
60+ event : "change"
61+ } ) ;
5562 assert . include ( body , "Called public API method `.reload()`" ) ;
5663 assert . include ( body , "With args: [\"core.min.css\",\"core.css\"]" ) ;
5764 done ( ) ;
@@ -63,7 +70,14 @@ describe("HTTP protocol", function () {
6370
6471 request ( url , function ( e , r , body ) {
6572 sinon . assert . calledWith ( spy , "file:changed" ) ;
66- sinon . assert . calledWithExactly ( spy , "file:changed" , { path : "somefile.php" , log : true , namespace : "core" , event : "change" } ) ;
73+ sinon . assert . calledWithExactly ( spy , "file:changed" , {
74+ path : "somefile.php" ,
75+ basename : "somefile.php" ,
76+ ext : "php" ,
77+ log : true ,
78+ namespace : "core" ,
79+ event : "change"
80+ } ) ;
6781 assert . include ( body , "Called public API method `.reload()`" ) ;
6882 assert . include ( body , "With args: \"somefile.php\"" ) ;
6983 done ( ) ;
0 commit comments