@@ -228,26 +228,6 @@ describe('modules/config/node-configuration', function() {
228228 expect ( configuration . getPresetName ( ) ) . to . equal ( 'external' ) ;
229229 } ) ;
230230
231- it ( 'should try to load preset from node' , function ( ) {
232- configuration . registerDefaultRules ( ) ;
233- configuration . load ( {
234- preset : 'path'
235- } ) ;
236-
237- expect ( configuration . getPresetName ( ) ) . to . equal ( 'path' ) ;
238- expect ( configuration . getUnsupportedRuleNames ( ) . indexOf ( 'resolve' ) ) . to . be . above ( - 1 ) ;
239- } ) ;
240-
241- it ( 'should try to load preset from node_modules' , function ( ) {
242- configuration . registerDefaultRules ( ) ;
243- configuration . load ( {
244- preset : 'sinon'
245- } ) ;
246-
247- expect ( configuration . getPresetName ( ) ) . to . equal ( 'sinon' ) ;
248- expect ( configuration . getUnsupportedRuleNames ( ) . indexOf ( 'spy' ) ) . to . be . above ( - 1 ) ;
249- } ) ;
250-
251231 it ( 'should load preset from preset' , function ( ) {
252232 configuration . load ( {
253233 preset : path . resolve ( './test/data/configs/modules/node_modules/jscs-t-test/index.json' )
@@ -384,16 +364,6 @@ describe('modules/config/node-configuration', function() {
384364 } ) ) . to . throw ( 'Preset "not-exist" does not exist' ) ;
385365 } ) ;
386366
387- it ( 'should try to load preset from node_modules' , function ( ) {
388- configuration . registerDefaultRules ( ) ;
389- configuration . load ( {
390- preset : 'sinon'
391- } ) ;
392-
393- expect ( configuration . getPresetName ( ) ) . to . equal ( 'sinon' ) ;
394- expect ( configuration . getUnsupportedRuleNames ( ) . indexOf ( 'spy' ) ) . to . be . above ( - 1 ) ;
395- } ) ;
396-
397367 it ( 'should accept `additionalRules` to register rule instances' , function ( ) {
398368 var rule = {
399369 getOptionName : function ( ) {
0 commit comments