Popular Posts

Saturday, May 31, 2014

introduction.js



Jasmine testing function with callbacks ..







describe("Testing function callback", function () {



    it("calls the callback", function () {

        var callbackObject = new CallBackTest();

       

        // NB: a dummy object with function success so can be used to check callback was called

        var observer = {

            success: function() {}

        };



        // spies always need an object and a method

        spyOn(observer, "success");

       

        callbackObject.doIt(observer.success);



        expect(observer.success).toHaveBeenCalled();



    });



});



function CallBackTest() {



    this.doIt = function (success) {

        return success();

    };

}





'via Blog this'

Richardson Maturity Model

Richardson Maturity Model:



Web API RMM or Maturity Model ... steps to get the api to its glory



'via Blog this'

Tuesday, May 27, 2014

Logging client side errors angularjs

http://www.bennadel.com/blog/2542-logging-client-side-errors-with-angularjs-and-stacktrace-js.htm

Thursday, May 22, 2014

Com. Net visibility issues

http://www.codeproject.com/Articles/769028/How-I-Came-to-Love-COM-Interoperability