Sha256: 8f4a89a943c4df1896e3e73672ae8fa6844084d5c98a7ef27b2c2e22fa28e549
Contents?: true
Size: 1.5 KB
Versions: 62
Compression:
Stored size: 1.5 KB
Contents
(function () { 'use strict'; describe('WORKAREA.breakPoints', function () { describe('currentMatches', function () { it('returns an array', function () { expect(WORKAREA.breakPoints.currentMatches).to.be.instanceof(Array); }); }); describe('currentlyLessThan', function () { var config = WORKAREA.config.storefrontBreakPoints; before(function () { WORKAREA.config.storefrontBreakPoints.sizes = { small: 320, medium: 760, wide: 960, x_wide: 1160, test: 999999 }; WORKAREA.breakPoints.createBreakPoints(); }); after(function(){ WORKAREA.config.storefrontBreakPoints = config; }); it('returns correct boolean value depending on current breakpoint', function () { expect(WORKAREA.breakPoints.currentlyLessThan('small')).to.be.false; expect(WORKAREA.breakPoints.currentlyLessThan('test')).to.be.true; }); it('returns false unless a valid breakpoint name is provided', function () { expect(WORKAREA.breakPoints.currentlyLessThan('foo')).to.be.false; expect(WORKAREA.breakPoints.currentlyLessThan(1)).to.be.false; expect(WORKAREA.breakPoints.currentlyLessThan(undefined)).to.be.false; }); }); }); }());
Version data entries
62 entries across 62 versions & 1 rubygems