Sha256: 307c4f05f22db8945d6fc5bf4ea7827391cafd3f9efbb678083edafd84c0f5a4
Contents?: true
Size: 760 Bytes
Versions: 5
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true require_relative "broadcaster_test_case" class StimulusReflex::NothingBroadcasterTest < StimulusReflex::BroadcasterTestCase test "broadcasts a nothing morph when called" do broadcaster = StimulusReflex::NothingBroadcaster.new(@reflex) expected = { "cableReady" => true, "operations" => [ { "name" => "stimulus-reflex:morph-nothing", "payload" => {}, "stimulusReflex" => { "some" => "data", "morph" => "nothing" }, "reflexId" => "666", "operation" => "dispatchEvent" } ] } assert_broadcast_on @reflex.stream_name, expected do broadcaster.broadcast nil, {some: :data} end end end
Version data entries
5 entries across 5 versions & 1 rubygems