       check(expression, expected) for expression, expected of specExamples
 
 
-    it "returns undefined if value is not found", () ->
+    it "should return undefined if value is not found", () ->
       target =
         foo: "bar",
         baz: [1, 2, 3]

      expect(evaluate(p)).to.be.undefined for p in pointers


    describe "validates pointer and", () ->
      target =
        foo: "bar"
        baz: [1, 2, 3]

      getTestFunction = (pointer) ->
        () -> jsonPointer.get targetAsString, pointer

      it "should throw an error if pointer is not valid", () ->
        invalidPointers = ["a", "/baz/01", "/baz/-", "-"]
        testFunctions = invalidPointers.map getTestFunction

        expect(f).to.throw Error for f in testFunctions


      it "should not throw an error if pointer is valid", () ->
        validPointers = ["", "/", "//", "/a", "/0", "/10", "/a/0", "/1/a", "/-"]
        testFunctions = validPointers.map getTestFunction

