Sha256: 9a29ee52c06d6f964e08d108e5dac3d773ff28da44de532e3a4bd41178fb1696

Contents?: true

Size: 257 Bytes

Versions: 6

Compression:

Stored size: 257 Bytes

Contents

# backtick_javascript: true

require 'native'

describe Array do
  describe '#to_n' do
    it 'converts an array with native objects to a JS array' do
      obj = [`{ key: 1 }`]
      native = obj.to_n
      `#{native}[0].key`.should == 1
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 spec/opal/stdlib/native/array_spec.rb
opal-1.8.2 spec/opal/stdlib/native/array_spec.rb
opal-1.8.1 spec/opal/stdlib/native/array_spec.rb
opal-1.8.0 spec/opal/stdlib/native/array_spec.rb
opal-1.8.0.beta1 spec/opal/stdlib/native/array_spec.rb
opal-1.8.0.alpha1 spec/opal/stdlib/native/array_spec.rb