stub lscache; ref #120

This commit is contained in:
Radek Stepan 2016-06-08 12:08:59 -04:00
parent 52240d54f0
commit b57bc76edd
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "burnchart",
"version": "3.2.0",
"version": "3.2.1",
"description": "GitHub Burndown Chart as a Service",
"author": "Radek Stepan <dev@radekstepan.com> (http://radekstepan.com)",
"license": "AGPL-3.0",

View File

@ -5,10 +5,16 @@ import { noCallThru } from 'proxyquire'
let proxy = noCallThru();
let request = {};
let lscache = {
get: () => [],
set: () => {}
};
// Proxy the request module.
let lib = path.resolve(__dirname, '../src/js/stores/projectsStore.js');
let projects = proxy(lib, { '../modules/github/request.js': request }).default;
let projects = proxy(lib, {
lscache, '../modules/github/request.js': request
}).default;
export default {
'projects - initializes empty': (done) => {