define(['iframeResizer'], function(iFrameResize) { describe('Setup error', function() { var iframe var log = LOG beforeEach(function() { loadIFrame('iframe600.html') }) it('min > max', function() { expect(function() { iFrameResize({ log: log, id: 'error1', maxHeight: 100, minHeight: 999 }) }).toThrow( new Error('Value for minHeight can not be greater than maxHeight') ) }) it('Unexpected data type', function() { expect(function() { iFrameResize( { log: log, id: 'error2' }, 1 ) }).toThrow(new TypeError('Unexpected data type (number)')) }) it('Expected