Skip to content

Commit

Permalink
fixing tests, adding gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed Feb 10, 2016
1 parent afbc761 commit fa359f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 76 deletions.
16 changes: 8 additions & 8 deletions mapAnnotationsToRows.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var ac = require('ve-api-check');
// var ac = require('ve-api-check');
// ac.throw([ac.string,ac.bool],arguments);
var each = require('lodash/collection/each');
var some = require('lodash/collection/some');
Expand All @@ -9,13 +9,13 @@ var getYOffsetForPotentiallyCircularRange = require('ve-range-utils/getYOffsetFo
var splitRangeIntoTwoPartsIfItIsCircular = require('ve-range-utils/splitRangeIntoTwoPartsIfItIsCircular');

module.exports = function mapAnnotationsToRows(annotations, sequenceLength, bpsPerRow) {
ac.throw(ac.arrayOf(ac.shape({
start: ac.posInt,
end: ac.posInt,
// id: ac.oneOfType([ac.object, ac.string])
})), annotations);
ac.throw(ac.posInt, sequenceLength);
ac.throw(ac.posInt, bpsPerRow);
// ac.throw(ac.arrayOf(ac.shape({
// start: ac.posInt,
// end: ac.posInt,
// // id: ac.oneOfType([ac.object, ac.string])
// })), annotations);
// ac.throw(ac.posInt, sequenceLength);
// ac.throw(ac.posInt, bpsPerRow);

var annotationsToRowsMap = {};
var yOffsetLevelMap = {};
Expand Down
65 changes: 0 additions & 65 deletions npm-debug.log

This file was deleted.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{
"name": "ve-sequence-utils",
"version": "1.0.1",
"version": "1.0.2",
"description": "sequence utility functions",
"main": "none",
"scripts": {
"patchAndPublish": "npm version patch && npm publish",
"test": "mocha *.test.js --harmony"
},
"author": "",
"license": "ISC",
"dependencies": {
"bson-objectid": "^1.1.1",
"lodash": "^3.10.1",
"random-color": "0.0.1",
"string-splice": "^1.3.0",
"validate.io-nonnegative-integer-array": "^1.0.1",
"ve-api-check": "^1.0.0",
"ve-range-utils": "^1.0.0"
},
"devDependencies": {
"chai": "^3.2.0",
"chai-subset": "^1.1.0"
"chai-subset": "^1.1.0",
"mocha": "^2.4.5"
}
}

0 comments on commit fa359f4

Please sign in to comment.