Permalink
Browse files

added component tests

  • Loading branch information...
1 parent e457580 commit 51c7c6e4810661a572f2b4ece3ee8821fcf494c3 Dominik Burgdörfer committed Jul 6, 2013
Showing with 66 additions and 1 deletion.
  1. +7 −1 Makefile
  2. +33 −0 component.json
  3. +26 −0 tests/component/index.html
View
@@ -1,4 +1,10 @@
all: compile
compile:
- @node ./tools/compile.js
+ @node ./tools/compile.js
+
+build: components
+ @component build --dev
+
+components: component.json
+ @component install --dev
View
@@ -0,0 +1,33 @@
+{
+
+ "name": "amanda",
+ "description": "JSON Schema validator",
+ "version": "0.4.6",
+ "author": "František Hába <hello@frantisekhaba.com> (https://github.com/Baggz)",
+
+ "keywords": [
+ "JSON",
+ "JSON Schema",
+ "schema",
+ "validator",
+ "validate",
+ "JSON validator",
+ "schema validator",
+ "async",
+ "browser"
+ ],
+
+ "homepage": "https://github.com/Baggz/Amanda",
+
+ "development": {
+ "chaijs/chai": "*",
+ "visionmedia/mocha": "*"
+ },
+
+ "main": "releases/latest/amanda.js",
+
+ "scripts": [
+ "releases/latest/amanda.js"
+ ]
+
+}
View
@@ -0,0 +1,26 @@
+<html>
+ <head>
+ <title>Amanda test</title>
+ <link rel="stylesheet" href="../../build/build.css">
+ </head>
+ <body>
+ <div id="mocha"></div>
+ <script src="../../build/build.js"></script>
+ <script>
+ require('mocha');
+ mocha.setup('bdd');
+ </script>
+ <script>
+ var amanda = require('amanda')
+ , should = require('chaijs-chai').should();
+ describe('Amanda', function() {
+ it('should exist', function() {
+ should.exist(amanda('json').validate);
+ });
+ });
+ </script>
+ <script>
+ mocha.run();
+ </script>
+ </body>
+</html>

0 comments on commit 51c7c6e

Please sign in to comment.