Comparing version 0.0.5 to 0.0.6
@@ -102,5 +102,14 @@ var Cache = require('./cache'); | ||
it('should be possible to unregister a model', function() { | ||
cache.unregisterModel(); | ||
cache.unregisterModel('spaceship'); | ||
}); | ||
it('should be possible to add data without having a model', function() { | ||
var planet = { | ||
type: 'planet', | ||
id: 1, | ||
pos: {x: 0, y: 0} | ||
}; | ||
cache.fill(planet); | ||
}); | ||
it('should be optional to have registered models', function() { | ||
@@ -107,0 +116,0 @@ cache.unregisterModel(); |
@@ -0,1 +1,3 @@ | ||
var util = require('util'); | ||
function AppModel(data) { | ||
@@ -14,4 +16,5 @@ this.setData(data); | ||
function BasicModel() {} | ||
util.inherits(BasicModel, AppModel); | ||
module.exports.AppModel = AppModel; | ||
module.exports.BasicModel = BasicModel; |
{ | ||
"name": "data-cache", | ||
"version": "0.0.5", | ||
"description": "", | ||
"main": "cache.js", | ||
"scripts": { | ||
"test": "gulp test", | ||
"build": "gulp build", | ||
"coverage": "gulp coverage" | ||
}, | ||
"keywords": [ | ||
"data", | ||
"cache" | ||
], | ||
"author": "Julian Hollmann", | ||
"license": "BSD-2-Clause", | ||
"devDependencies": { | ||
"gulp": "~3.8.7", | ||
"gulp-browserify": "~0.5.0", | ||
"sinon": "~1.10.3", | ||
"referee": "~1.0.3", | ||
"gulp-mocha": "~1.0.0", | ||
"gulp-watch": "~0.6.9", | ||
"referee-sinon": "~1.0.2", | ||
"setup-referee-sinon": "~0.2.0", | ||
"gulp-rename": "~1.2.0", | ||
"gulp-uglify": "~0.3.1", | ||
"gulp-istanbul": "~0.2.2" | ||
}, | ||
"dependencies": { | ||
"when": "~3.4.4", | ||
"asap": "~1.0.0", | ||
"events": "~1.0.1", | ||
"i": "~0.3.2" | ||
} | ||
"name": "data-cache", | ||
"version": "0.0.6", | ||
"description": "", | ||
"main": "cache.js", | ||
"repository": "https://github.com/nerdbeere/data-cache.git", | ||
"scripts": { | ||
"test": "gulp test", | ||
"build": "gulp build", | ||
"coverage": "gulp coverage" | ||
}, | ||
"keywords": [ | ||
"data", | ||
"cache" | ||
], | ||
"author": "Julian Hollmann", | ||
"license": "BSD-2-Clause", | ||
"devDependencies": { | ||
"gulp": "~3.8.7", | ||
"gulp-browserify": "~0.5.0", | ||
"sinon": "~1.10.3", | ||
"referee": "~1.0.3", | ||
"gulp-mocha": "~1.0.0", | ||
"gulp-watch": "~0.6.9", | ||
"referee-sinon": "~1.0.2", | ||
"setup-referee-sinon": "~0.2.0", | ||
"gulp-rename": "~1.2.0", | ||
"gulp-uglify": "~0.3.1", | ||
"gulp-istanbul": "~0.2.2" | ||
}, | ||
"dependencies": { | ||
"when": "~3.4.4", | ||
"asap": "~1.0.0", | ||
"events": "~1.0.1", | ||
"i": "~0.3.2" | ||
} | ||
} |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
57473
552