Skip to content

Commit

Permalink
revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
staticskies committed Oct 15, 2015
1 parent 5ccbf71 commit 02858c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mesh-tree",
"version": "0.11.0",
"version": "0.11.1",
"description": "Utility functions for traversing the Medical Subject Heading (MeSH) tree",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,10 +784,6 @@ let meshTree = {
case 'codingSystem':
propertiesObj[property] = 'MeSH';
break;
case 'hasChildren':
let children = yield this.getChildrenDescUIsForDescUI(ui);
propertiesObj[property] = !!children.length;
break;
default:
propertiesObj[property] = null;
}
Expand Down
5 changes: 2 additions & 3 deletions test/createPropertiesObject_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ describe('create properties object', function () {
'description': 'An ionophorous, polyether antibiotic from Streptomyces chartreusensis. It binds and transports CALCIUM and other divalent cations across membranes and uncouples oxidative phosphorylation while inhibiting ATPase of rat liver mitochondria. The substance is used mostly as a biochemical tool to study the role of divalent cations in various biological systems.',
'name': 'Calcimycin',
'schemaOrgType': 'Drug',
'synonyms': ['A23187, Antibiotic', 'Antibiotic A23187', 'A23187', 'A 23187', 'A-23187'],
'hasChildren': false
'synonyms': ['A23187, Antibiotic', 'Antibiotic A23187', 'A23187', 'A 23187', 'A-23187']
};
it('should return: ' + JSON.stringify(resultExpected), function (done) {
meshTree.createPropertiesObject({
'@id': 'http://id.nlm.nih.gov/mesh/D000001',
properties: ['name','description','synonyms','schemaOrgType','codeValue','codingSystem','hasChildren']
properties: ['name','description','synonyms','schemaOrgType','codeValue','codingSystem']
}).then(function (result) {
assert.deepEqual(result, resultExpected);
done();
Expand Down

0 comments on commit 02858c1

Please sign in to comment.