Sha256: 211a186d7eb725de766d7e346af7ff7df443704940dd52d240fa824702a247dd

Contents?: true

Size: 166 Bytes

Versions: 19

Compression:

Stored size: 166 Bytes

Contents

describe 'Safe navigator' do
  it "handles also null and undefined" do
    [`null`, `undefined`].each do |value|
      value&.unknown.should == nil
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
opal-1.6.0.alpha1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.5.1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.5.0 spec/opal/core/language/safe_navigator_spec.rb
opal-1.5.0.rc1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.4.1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.4.0 spec/opal/core/language/safe_navigator_spec.rb
opal-1.4.0.alpha1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.3.2 spec/opal/core/language/safe_navigator_spec.rb
opal-1.3.1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.3.0 spec/opal/core/language/safe_navigator_spec.rb
opal-1.3.0.rc1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.3.0.alpha1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.2.0 spec/opal/core/language/safe_navigator_spec.rb
opal-1.2.0.beta1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.1.1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.1.1.rc1 spec/opal/core/language/safe_navigator_spec.rb
opal-1.1.0 spec/opal/core/language/safe_navigator_spec.rb
opal-1.1.0.rc1 spec/opal/core/language/safe_navigator_spec.rb
opal-0.11.0.rc1 spec/opal/core/language/safe_navigator_spec.rb