Skip to content

Commit

Permalink
Rename param & remove warnings from test
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Dec 1, 2014
1 parent 8015243 commit 289a1d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions cycledash/static/js/examine/RecordStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ var DEFAULT_SORT_BYS = [{columnName: 'contig', order: 'asc'},
var ENTIRE_GENOME = {start: null, end: null, contig: types.ALL_CHROMOSOMES};


// opt_dataSource is provided for testing. Its type is function(url, done_callback).
function createRecordStore(vcfId, dispatcher, opt_dataSource) {
// opt_testDataSource is provided for testing.
// Its type is function(url, done_callback).
function createRecordStore(vcfId, dispatcher, opt_testDataSource) {
// Initial state of the store. This is mutable. There be monsters.
var hasLoaded = false,
loadError = null,
Expand Down Expand Up @@ -54,7 +55,7 @@ function createRecordStore(vcfId, dispatcher, opt_dataSource) {
// Token identifying this store within the dispatcher.
var dispatcherToken = null;

var dataSource = opt_dataSource || networkDataSource;
var dataSource = opt_testDataSource || networkDataSource;

function receiver(action) {
switch(action.actionType) {
Expand Down
4 changes: 2 additions & 2 deletions tests/js/DataUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ function makeFakeServer(vcfPath) {
var genotypesUrl = '/runs/1/genotypes';
var get = function(path, callback) {
if (path == '/runs/1/spec') {
callback([spec]);
callback(spec);
} else if (path == '/runs/1/contigs') {
callback([{contigs: contigs}]);
callback({contigs: contigs});
} else if (path.slice(0, genotypesUrl.length) == genotypesUrl) {
callback({
records: records,
Expand Down

0 comments on commit 289a1d7

Please sign in to comment.