Sha256: 7caa53f9742f6ae0c944f3fc654816450982c5e6406259ee7301b062cbd66654

Contents?: true

Size: 631 Bytes

Versions: 4

Compression:

Stored size: 631 Bytes

Contents

require "test_helper"

class DevServerTest < Webpacker::Test
  def test_running?
    with_node_env("production") do
      reloaded_config
      refute Webpacker.dev_server.running?
    end
  end

  def test_host
    with_node_env("development") do
      reloaded_config
      assert_equal Webpacker.dev_server.host, "localhost"
    end
  end

  def test_port
    with_node_env("development") do
      reloaded_config
      assert_equal Webpacker.dev_server.port, 3035
    end
  end

  def test_https?
    with_node_env("development") do
      reloaded_config
      assert_equal Webpacker.dev_server.https?, false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
webpacker-3.3.1 test/dev_server_test.rb
webpacker-3.3.0 test/dev_server_test.rb
webpacker-3.2.2 test/dev_server_test.rb
webpacker-3.2.1 test/dev_server_test.rb