4/23/2014 ~ 1 min read

expect(a).toBe(c)


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]


Headshot of Matthew Hippely

Hi, I’m Matthew. I live in Ventura County, and spend my time thinking about systems, software, and how things evolve over time.

You can find me on GitHub, LinkedIn, or read more about me here.