Also, in your tests you seem to be testing a single style every time, you should be able to combine those into a single test. For example:
it("should set the correct styles when the location is the top of the page", function(){ Display.doEntranceTransition("0"); expect(alertBackground.style.top).toEqual('0px'); expect(alertBackground.style.transition).toEqual("2s linear"); expect(alertBackground.style.height).toEqual("25%");
});
See the inline comments.
Also, in your tests you seem to be testing a single style every time, you should be able to combine those into a single test. For example:
it("should set the correct styles when the location is the top of the page", function(){
Display. doEntranceTrans ition(" 0");
expect( alertBackground .style. top).toEqual( '0px');
expect( alertBackground .style. transition) .toEqual( "2s linear");
expect( alertBackground .style. height) .toEqual( "25%");
});