Sha256: 3622bdb4b44a18b6d685b8251c4dc485b9ade545b9d406ac38883f4cac2d2492

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

require File.join(File.dirname(__FILE__), 'identity_test')


class UglifyJSTest < IdentityTest

  FUNCTION = <<-eos
    function hello(name) {
      alert('Hello, ' + name);
    }
  eos

  INVOCATION = <<-eos
    hello('New user');
  eos

  def subject
    Shift::UglifyJS
  end

  def options
    {}
  end

  def transformations
    {
      [FUNCTION, INVOCATION].join("\n") =>
        "function hello(a){alert(\"Hello, \"+a)}hello(\"New user\")",
      FUNCTION    => "function hello(a){alert(\"Hello, \"+a)}",
      INVOCATION  => "hello(\"New user\")"
    }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shift-0.1.0 test/c/uglify_js_test.rb