Sha256: 24daf5ac349f37a975f9b192d15b59919fc9699479e396eea6afacc1759cecd7

Contents?: true

Size: 444 Bytes

Versions: 10

Compression:

Stored size: 444 Bytes

Contents

describe("Extensions", function() {
  it("should test a negated conditional with unless", function() {
    var is_true = false,
        does_fallback_work = false;
    
    unless (false,
      function() {
        is_true = true;
      }
    );

    unless (true,
      function() {},
      function() {
        does_fallback_work = true;
      }
    );

    expect(is_true).toBeTruthy();
    expect(does_fallback_work).toBeTruthy();
  });
});

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
ninjs-0.16.8 repository/ninjs/spec/javascripts/extension_spec.js
ninjs-0.16.7 repository/ninjs/spec/javascripts/extension_spec.js
ninjs-0.16.6 repository/ninjs/spec/javascripts/extension_spec.js
ninjs-0.16.5 repository/ninjs/spec/javascripts/extension_spec.js
ninjs-0.16.4 repository/ninjs/spec/javascripts/extension_spec.js
ninjs-framework-0.1.0 spec/tmp/spec/javascripts/extension_spec.js
ninjs-framework-0.1.0 spec/javascripts/extension_spec.js
ninjs-0.16.3 repository/ninjs/spec/javascripts/extension_spec.js
ninjs-0.16.2 repository/ninjs/spec/javascripts/extension_spec.js
ninjs-0.16.1 repository/ninjs/spec/javascripts/extension_spec.js