I was writing some tests for a singleton I need to create and thought this block was cool: [js] it(‘should be a Singleton object’, function () { var a = siteDNA.getInstance(); var c = siteDNA.getInstance(); expect(a).toBe(c); }); [/js]
4/23/2014 ~ 1 min read