Sha256: 7eaefeb13b601c250553933beaefb1d2447cc5a2e1ac40618feb28340bb10f5d
Contents?: true
Size: 860 Bytes
Versions: 2
Compression:
Stored size: 860 Bytes
Contents
describe 'up.util', -> describe '.isBlank', -> it 'returns false for false', -> expect(up.util.isBlank(false)).toBe(false) it 'returns false for true', -> expect(up.util.isBlank(true)).toBe(false) it 'returns true for null', -> expect(up.util.isBlank(null)).toBe(true) it 'returns true for undefined', -> expect(up.util.isBlank(undefined)).toBe(true) it 'returns true for an empty String', -> expect(up.util.isBlank('')).toBe(true) it 'returns false for a String with at least one character', -> expect(up.util.isBlank('string')).toBe(false) it 'returns true for an empty array', -> expect(up.util.isBlank([])).toBe(true) it 'returns false for an array with at least one element', -> expect(up.util.isBlank(['element'])).toBe(false)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
upjs-rails-0.2.1 | spec_app/spec/javascripts/up/util_spec.js.coffee |
upjs-rails-0.2.0 | spec_app/spec/javascripts/up/util_spec.js.coffee |