Socket
Socket
Sign inDemoInstall

cases

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.1.0

43

Gruntfile.js
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
files: [ '**/*.js', '!node_modules/**/*.js' ],
options: {
jshintrc: 'jshint.json'
}
},
var tourism = require('tourism');
mochaTest: {
files: ['test/**/*.js']
},
mochaTestConfig: {
options: {
reporter: 'spec',
ui: 'tdd'
}
},
watch: {
options: {
files: [ '**/*.js', '!node_modules/**/*.js' ],
tasks: [ 'default' ],
interrupt: true
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.registerTask('default', [ 'jshint', 'mochaTest' ]);
};
module.exports = tourism({
analyse: {
server: [ '**/*.js', '!node_modules/**/*.js' ]
},
test: {
server: [ 'test/**/*.js' ]
}
});

@@ -17,3 +17,5 @@ 'use strict';

}, function () {
if (done) { done(); }
if (done) {
done();
}
});

@@ -24,3 +26,4 @@ };

return function () {
for (var i = 0; i < data.length; i++) {
var i;
for (i = 0; i < data.length; i++) {
fn.apply(null, data[i]);

@@ -31,2 +34,2 @@ }

module.exports = cases;
module.exports = cases;
{
"name": "cases",
"version": "0.0.2",
"version": "0.1.0",
"description": "cases provides parameterized unit tests for Mocha.",
"author": "Golo Roden <webmaster@goloroden.de> (http://www.goloroden.de)",
"main": "./lib/cases",
"contributors": [
{
"name": "Golo Roden",
"email": "golo.roden@thenativeweb.io"
}
],
"main": "./lib/cases.js",
"dependencies": {
"async": "0.2.6"
"async": "0.9.0"
},
"devDependencies": {
"grunt": "0.4.0",
"grunt-contrib-jshint": "0.1.1",
"grunt-contrib-watch": "0.2.0",
"grunt-mocha-test": "0.2.0",
"node-assertthat": "0.0.18"
"grunt": "0.4.5",
"node-assertthat": "0.2.0",
"tourism": "0.1.0"
},

@@ -23,3 +26,4 @@ "scripts": {

"url": "git://github.com/goloroden/cases.git"
}
}
},
"license": "MIT"
}

@@ -5,4 +5,2 @@ # cases

If you have any questions or feedback, feel free to contact me using [@goloroden](https://twitter.com/goloroden) on Twitter.
## Installation

@@ -78,10 +76,6 @@

## Running the tests
## Running the build
cases has been developed using TDD. To run the tests, go to the folder where you have installed cases to and run `npm test`. You need to have [mocha](https://github.com/visionmedia/mocha) installed.
This module can be built using [Grunt](http://gruntjs.com/). Besides running the tests, this also analyses the code. To run Grunt, go to the folder where you have installed cases and run `grunt`. You need to have [grunt-cli](https://github.com/gruntjs/grunt-cli) installed.
$ npm test
Additionally, this module can be built using [Grunt](http://gruntjs.com/). Besides running the tests, Grunt also analyses the code using [JSHint](http://www.jshint.com/). To run Grunt, go to the folder where you have installed cases and run `grunt`. You need to have [grunt-cli](https://github.com/gruntjs/grunt-cli) installed.
$ grunt

@@ -92,8 +86,8 @@

The MIT License (MIT)
Copyright (c) 2013 Golo Roden.
Copyright (c) 2013-2014 the native web.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc