function extendExpect() {
        expect.toFail = function (failMessage) {
            expect().toFail(failMessage);
        };
    }
******************************************************
Extend Jasmine window.expect so can write
expect.toFail(failMessage)
*******************************************************