@@ -7,7 +7,6 @@ var rimraf = require('rimraf');
77var path = require ( 'path' ) ;
88var assert = require ( 'assert' ) ;
99var tmp = require ( 'tmp' ) ;
10- var os = require ( 'os' ) ;
1110
1211tmp . setGracefulCleanup ( ) ;
1312var jo = path . join . bind ( path ) ;
@@ -19,11 +18,12 @@ describe('sane in node mode', function() {
1918 harness . call ( this , { } ) ;
2019} ) ;
2120
22- if ( os . platform ( ) === 'darwin' ) {
23- describe ( 'sane in fsevents mode' , function ( ) {
24- harness . call ( this , { fsevents : true } ) ;
21+ describe ( 'sane in fsevents mode' , function ( ) {
22+ it ( 'errors in a helpful manner' , function ( ) {
23+ assert . throws ( ( ) => sane . FSEventsWatcher , 'asdf' ) ;
24+ assert . throws ( ( ) => sane ( '/dev/null' , { fsevents : true } ) , 'asdf' ) ;
2525 } ) ;
26- }
26+ } ) ;
2727
2828describe ( 'sane in watchman mode' , function ( ) {
2929 harness . call ( this , { watchman : true } ) ;
@@ -43,8 +43,6 @@ function getWatcherClass(mode) {
4343 return sane . WatchexecWatcher ;
4444 } else if ( mode . poll ) {
4545 return sane . PollWatcher ;
46- } else if ( mode . fsevents ) {
47- return sane . FSEventsWatcher ;
4846 } else {
4947 return sane . NodeWatcher ;
5048 }
0 commit comments