it("makes path not expected to be visited", function () { var expectedPath = "/foo", scanningProcess = new ScanningProcess({}); scanningProcess.expectPath(expectedPath); assert.ok(scanningProcess.isExpectingPath(expectedPath)); scanningProcess.unexpectPath(expectedPath); assert.ok(!scanningProcess.isExpectingPath(expectedPath)); });
assert.throws(function () { scanningProcess.unexpectPath(p.sep + "foo"); });