소스 검색

Add test verifying expected effects are included in discovery config

Christopher Mullins 6 년 전
부모
커밋
1710b03aa7
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      test/remote/spec/discovery_spec.rb

+ 3 - 0
test/remote/spec/discovery_spec.rb

@@ -104,6 +104,9 @@ RSpec.describe 'MQTT Discovery' do
         device
       )
       expect(config.keys).to include(*expected_keys)
+
+      expect(config['effect_list']).to include(*%w(white_mode night_mode))
+      expect(config['effect_list']).to include(*(0..8).map(&:to_s))
     end
 
     it 'should list identifiers for ESP and bulb' do