UNPKG

json-path

Version:

JSON-Path utility (XPath for JSON) for nodejs and modern browsers.

31 lines (29 loc) 848 B
<html> <head> <meta charset="utf-8"> <title>Mocha Tests</title> <link rel="stylesheet" href="../node_modules/mocha/mocha.css" /> </head> <body> <div id="mocha"></div> <!-- You should open this file directly in a browser from your file system, not from a server... --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> <script> globalConflict = "This is a conflict"; JsonPointer = globalConflict; JsonPath = globalConflict; </script> <script src="../node_modules/expect.js/expect.js"></script> <script src="../node_modules/mocha/mocha.js"></script> <script src="../releases/json-path+json-ptr-0.1.3.min.js"></script> <script>mocha.setup('bdd')</script> <script src="tests.js"></script> <script> window.onload = function() { mocha.run() }; </script> </body> </html>