Skip to content
Snippets Groups Projects
Commit 2b80e45a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit test for searching in submaps added

parent 635adf6a
No related branches found
No related tags found
1 merge request!222Resolve "searching for elements in submap"
Showing
with 22 additions and 5 deletions
......@@ -70,6 +70,18 @@ describe('SearchDbOverlay', function () {
return Promise.all(promises);
});
});
it("on submap", function () {
helper.setUrl("http://localhost/?id=complex_model_with_submaps")
return ServerConnector.getProject().then(function (project) {
var map = helper.createCustomMap(project);
var searchDb = helper.createSearchDbOverlay(map);
return searchDb.searchByQuery("s1", true);
}).then(function (result) {
assert.equal(result.length, 1);
assert.equal(result[0].length, 3);
});
});
});
describe("searchByEncodedQuery", function () {
......
[{"id":345331,"modelId":16728,"type":"ALIAS"},{"id":345337,"modelId":16731,"type":"ALIAS"},{"id":345330,"modelId":16729,"type":"ALIAS"}]
\ No newline at end of file
[{"bounds":{"height":30.0,"width":80.0,"x":257.0,"y":254.0},"id":345339,"modelId":16728}]
\ No newline at end of file
[{"abbreviation":null,"boundaryCondition":false,"bounds":{"height":40.0,"width":80.0,"x":65.0,"y":64.0},"compartmentId":null,"complexId":null,"constant":false,"elementId":"sa1","formerSymbols":[],"formula":null,"fullName":null,"hierarchyVisibilityLevel":"0","id":345330,"initialAmount":0.0,"initialConcentration":null,"linkedSubmodel":16730,"modelId":16729,"name":"s1","notes":"","other":{"modifications":[],"structuralState":null,"structures":{}},"references":[],"symbol":null,"synonyms":[],"type":"Protein"}]
\ No newline at end of file
[{"abbreviation":null,"boundaryCondition":false,"bounds":{"height":40.0,"width":80.0,"x":59.0,"y":73.0},"compartmentId":345323,"complexId":null,"constant":false,"elementId":"sa1","formerSymbols":[],"formula":null,"fullName":null,"hierarchyVisibilityLevel":"2","id":345331,"initialAmount":0.0,"initialConcentration":null,"linkedSubmodel":16729,"modelId":16728,"name":"s1","notes":"","other":{"modifications":[],"structuralState":null,"structures":{}},"references":[],"symbol":null,"synonyms":[],"type":"Protein"}]
\ No newline at end of file
[{"abbreviation":null,"boundaryCondition":false,"bounds":{"height":40.0,"width":80.0,"x":190.0,"y":44.0},"compartmentId":null,"complexId":null,"constant":false,"elementId":"sa1","formerSymbols":[],"formula":null,"fullName":null,"hierarchyVisibilityLevel":"0","id":345337,"initialAmount":0.0,"initialConcentration":null,"linkedSubmodel":null,"modelId":16731,"name":"s1","notes":"","other":{"modifications":[],"structuralState":null,"structures":{}},"references":[],"symbol":null,"synonyms":[],"type":"Protein"}]
\ No newline at end of file
source diff could not be displayed: it is too large. Options to address this: view the blob.
[{"id":"hsa-miR-125a-3p","name":"hsa-miR-125a-3p","targets":[{"name":"FYN","references":[{"annotatorClassName":"","article":{"title":"microRNA-125a-3p reduces cell proliferation and migration by targeting Fyn.","authors":["Ninio-Many L"," Grossman H"," Shomron N"," Chuderland D"," Shalgi R."],"journal":"Journal of cell science","year":2013,"link":"http://www.ncbi.nlm.nih.gov/pubmed/23606749","id":"23606749","citationCount":25,"stringAuthors":"Ninio-Many L, Grossman H, Shomron N, Chuderland D, Shalgi R."},"descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.ncbi.nlm.nih.gov/pubmed/23606749","resource":"23606749","type":"PUBMED"}],"targetElements":[],"targetParticipants":[{"annotatorClassName":"","descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.genenames.org/cgi-bin/gene_symbol_report?match=FYN","resource":"FYN","type":"HGNC_SYMBOL"}]},{"name":"GPC4","references":[{"annotatorClassName":"","article":{"title":"MicroRNA-125a inhibits cell growth by targeting glypican-4.","authors":["Feng C"," Li J"," Ruan J"," Ding K."],"journal":"Glycoconjugate journal","year":2012,"link":"http://www.ncbi.nlm.nih.gov/pubmed/22644326","id":"22644326","citationCount":8,"stringAuthors":"Feng C, Li J, Ruan J, Ding K."},"descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.ncbi.nlm.nih.gov/pubmed/22644326","resource":"22644326","type":"PUBMED"}],"targetElements":[],"targetParticipants":[{"annotatorClassName":"","descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.genenames.org/cgi-bin/gene_symbol_report?match=GPC4","resource":"GPC4","type":"HGNC_SYMBOL"}]},{"name":"RHOA","references":[{"annotatorClassName":"","article":{"title":"MiRNA-125a-3p is a negative regulator of the RhoA-actomyosin pathway in A549 cells.","authors":["Huang B"," Luo W"," Sun L"," Zhang Q"," Jiang L"," Chang J"," Qiu X"," Wang E."],"journal":"International journal of oncology","year":2013,"link":"http://www.ncbi.nlm.nih.gov/pubmed/23525486","id":"23525486","citationCount":8,"stringAuthors":"Huang B, Luo W, Sun L, Zhang Q, Jiang L, Chang J, Qiu X, Wang E."},"descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.ncbi.nlm.nih.gov/pubmed/23525486","resource":"23525486","type":"PUBMED"}],"targetElements":[],"targetParticipants":[{"annotatorClassName":"","descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.genenames.org/cgi-bin/gene_symbol_report?match=RHOA","resource":"RHOA","type":"HGNC_SYMBOL"}]}]}]
\ No newline at end of file
[{"id":"hsa-miR-125a-3p","name":"hsa-miR-125a-3p","targets":[{"name":"FYN","references":[{"annotatorClassName":"","article":{"title":"microRNA-125a-3p reduces cell proliferation and migration by targeting Fyn.","authors":["Ninio-Many L"," Grossman H"," Shomron N"," Chuderland D"," Shalgi R."],"journal":"Journal of cell science","year":2013,"link":"http://www.ncbi.nlm.nih.gov/pubmed/23606749","id":"23606749","citationCount":18,"stringAuthors":"Ninio-Many L, Grossman H, Shomron N, Chuderland D, Shalgi R."},"descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.ncbi.nlm.nih.gov/pubmed/23606749","resource":"23606749","type":"PUBMED"}],"targetElements":[],"targetParticipants":[{"annotatorClassName":"","descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.genenames.org/cgi-bin/gene_symbol_report?match=FYN","resource":"FYN","type":"HGNC_SYMBOL"}]},{"name":"GPC4","references":[{"annotatorClassName":"","article":{"title":"MicroRNA-125a inhibits cell growth by targeting glypican-4.","authors":["Feng C"," Li J"," Ruan J"," Ding K."],"journal":"Glycoconjugate journal","year":2012,"link":"http://www.ncbi.nlm.nih.gov/pubmed/22644326","id":"22644326","citationCount":8,"stringAuthors":"Feng C, Li J, Ruan J, Ding K."},"descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.ncbi.nlm.nih.gov/pubmed/22644326","resource":"22644326","type":"PUBMED"}],"targetElements":[],"targetParticipants":[{"annotatorClassName":"","descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.genenames.org/cgi-bin/gene_symbol_report?match=GPC4","resource":"GPC4","type":"HGNC_SYMBOL"}]},{"name":"RHOA","references":[{"annotatorClassName":"","article":{"title":"MiRNA-125a-3p is a negative regulator of the RhoA-actomyosin pathway in A549 cells.","authors":["Huang B"," Luo W"," Sun L"," Zhang Q"," Jiang L"," Chang J"," Qiu X"," Wang E."],"journal":"International journal of oncology","year":2013,"link":"http://www.ncbi.nlm.nih.gov/pubmed/23525486","id":"23525486","citationCount":8,"stringAuthors":"Huang B, Luo W, Sun L, Zhang Q, Jiang L, Chang J, Qiu X, Wang E."},"descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.ncbi.nlm.nih.gov/pubmed/23525486","resource":"23525486","type":"PUBMED"}],"targetElements":[],"targetParticipants":[{"annotatorClassName":"","descriptionByType":"","descriptionByTypeRelation":"","id":0,"link":"http://www.genenames.org/cgi-bin/gene_symbol_report?match=RHOA","resource":"RHOA","type":"HGNC_SYMBOL"}]}]}]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment