Sha256: 2834ce90c54933a43dc345b7f2993ad480faab2382e23894547c10492a96f98c

Contents?: true

Size: 303 Bytes

Versions: 10

Compression:

Stored size: 303 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "helper"))

class TypeofNodeTest < Johnson::NodeTestCase
  def test_typeof_sexp
    assert_sexp(
      [[:typeof, [:name, 'foo']]],
      @parser.parse('typeof foo;')
    )
    assert_ecma('typeof foo;', @parser.parse('typeof foo;'))
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
johnson19-2.0.0.pre3 test/johnson/generic/nodes/typeof_test.rb
pre-johnson-2.0.0 test/johnson/generic/nodes/typeof_test.rb
johnson-2.0.0.pre3 test/johnson/generic/nodes/typeof_test.rb
johnson-2.0.0.pre2 test/johnson/generic/nodes/typeof_test.rb
johnson-2.0.0.pre1 test/johnson/generic/nodes/typeof_test.rb
johnson-2.0.0.pre0 test/johnson/generic/nodes/typeof_test.rb
smparkes-johnson-1.1.2.6 test/johnson/generic/nodes/typeof_test.rb
smparkes-johnson-1.1.2.5 test/johnson/generic/nodes/typeof_test.rb
smparkes-johnson-1.1.2.4 test/johnson/generic/nodes/typeof_test.rb
smparkes-johnson-1.1.2.3 test/johnson/generic/nodes/typeof_test.rb