@@ -10,6 +10,7 @@ chai.use(sinonChai);
1010
1111/* eslint-disable no-unused-expressions */
1212/* eslint-disable require-jsdoc */
13+ /* eslint-disable camelcase */
1314
1415const ALPHANUMERIC_BASE = 36 ,
1516 capabilityErr = new Error ( 'capabilityErr' ) ,
@@ -69,7 +70,7 @@ describe('watch', () => {
6970 } ) ;
7071
7172 it ( 'calls capabilityCheck' , ( ) => {
72- expect ( Client . prototype . capabilityCheck ) . calledWith ( { } , match . func ) ;
73+ expect ( Client . prototype . capabilityCheck ) . calledWith ( { optional : [ ] , required : [ 'relative_root' ] } , match . func ) ;
7374 } ) ;
7475
7576 it ( 'prints an error on screen' , ( ) => {
@@ -180,7 +181,7 @@ describe('watch', () => {
180181 beforeEach ( ( ) => {
181182 stub ( Client . prototype , 'command' , ( command , cb ) => {
182183 if ( 'watch-project' === command [ 0 ] ) {
183- cb ( null , { watch : 'a watcher instance' } ) ;
184+ cb ( null , { watch : 'a watcher instance' , relative_path : 'relative path' } ) ;
184185 } else if ( 'clock' === command [ 0 ] ) {
185186 cb ( null , { clock : 'clock value' } ) ;
186187 } else {
@@ -196,7 +197,7 @@ describe('watch', () => {
196197
197198 it ( 'executes a subscribe command' , ( ) => {
198199 expect ( Client . prototype . command ) . calledWith ( [ 'subscribe' , 'a watcher instance' , 'qwerty' ,
199- { expression : [ 'suffix' , 'rty' ] , since : 'clock value' } ] , match . func ) ;
200+ { expression : [ 'suffix' , 'rty' ] , since : 'clock value' , relative_root : 'relative path' } ] , match . func ) ;
200201 } ) ;
201202
202203 it ( 'prints an error on screen' , ( ) => {
0 commit comments