Skip to content

Commit

Permalink
Fix #506: Unit tests not rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed May 1, 2024
1 parent 5ebeef5 commit bdab28e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Docs-20240501-021050.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Docs
body: Unit tests not rendering
time: 2024-05-01T02:10:50.987412+02:00
custom:
Author: aranke
Issue: "506"
5 changes: 3 additions & 2 deletions src/app/services/graph.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ angular
_.each(_.filter(service.manifest.nodes, function(node) {
// operation needs to be a graph type so that the parent/child map can be resolved even though we won't be displaying it
var is_graph_type = _.includes(['model', 'seed', 'source', 'snapshot', 'analysis', 'exposure', 'metric', 'semantic_model', 'operation'], node.resource_type);
var is_singular_test = node.resource_type == 'test' && !node.hasOwnProperty('test_metadata');
return is_graph_type || is_singular_test;
var is_singular_test = node.resource_type === 'test' && !node.hasOwnProperty('test_metadata');
var is_unit_test = node.resource_type === 'unit_test';
return is_graph_type || is_singular_test || is_unit_test;
}), function(node) {
var node_obj = {
group: "nodes",
Expand Down

0 comments on commit bdab28e

Please sign in to comment.