Skip to content
This repository has been archived by the owner on Aug 9, 2018. It is now read-only.

Commit

Permalink
Add an initial simple test and jshint configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Atkins committed Nov 22, 2013
1 parent accb6bc commit db8f575
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"node": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": false,
"noarg": true,
"quotmark": "single",
"undef": true,
"unused": "vars",
"strict": true,
"trailing": true,
"noarg": true,
"nonew": true,
"maxlen": 110,
"white": true
}
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@
"url": "git://github.com/apparentlymart/angularjs-server.git"
},
"main": "./lib/main",
"scripts": {
"test": "nodeunit tests/",
"lint": "jshint -c .jshintrc lib/* tests/*"
},
"dependencies": {
"angularcontext": "~0.0.4",
"escape-html": "1.0.0",
"express": "~3.4.4"
},
"devDependencies": {
"nodeunit": "*",
"jshint": "2.1.11"
}
}
8 changes: 8 additions & 0 deletions tests/require.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

// This is just a basic test that we can even import the module.
exports.testRequire = function (test) {
var server = require('../lib/main.js');
test.ok(server, 'angularjs-server is truthy');
test.done();
};

0 comments on commit db8f575

Please sign in to comment.