describe('Support module', function () {
  var S = GameOfLife.Support;

  describe('For validating canvas', function () {
    it('throws InvalidArgument if given other than a canvas element', function () {
      expect(function () {
        S.validateCanvas($('<p>foo</p>')[0]);
      }).toThrow(new S.InvalidArgument('Not a canvas element'));
    });

    it('returns the given element if the element is a canvas', function () {
      expect(S.validateCanvas($('<canvas></canvas>')[0]).getContext).toBeFunction();
    });
  });
});

@@ -521,13 +521,156 @@
 );%0A  %7D);
+%0A%0A  it('inverts an object', function () %7B%0A    var obj = %7B foo: 1, bar: 2%7D;%0A    expect(S.invertObject(obj)).toEqual(%7B1: 'foo', 2: 'bar'%7D);%0A  %7D);
 %0A%7D);%0A

Add unit test for object inversion