Skip to content

Commit

Permalink
stub lscache; ref #120
Browse files Browse the repository at this point in the history
  • Loading branch information
radekstepan committed Jun 8, 2016
1 parent 52240d5 commit b57bc76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "burnchart",
"version": "3.2.0",
"version": "3.2.1",
"description": "GitHub Burndown Chart as a Service",
"author": "Radek Stepan <[email protected]> (http://radekstepan.com)",
"license": "AGPL-3.0",
Expand Down
8 changes: 7 additions & 1 deletion test/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b57bc76

Please sign in to comment.