# frozen_string_literal: true

require 'test_helper'

module Archimate
  module Svg
    module Entity
      class ApplicationEventTest < Minitest::Test
        def setup
          @model = build_model(
            diagrams: [
              build_diagram
            ]
          )
          @child = @model.diagrams.first.nodes.first
        end

        def test_badge
          subject = ApplicationEvent.new(@child, build_bounds)
          assert_equal "#archimate-event-badge", subject.instance_variable_get(:@badge)
        end
      end
    end
  end
end
