This repository was archived by the owner on Dec 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/sensemaker_dna/sensemaker Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -889,7 +889,29 @@ export default () => {
889
889
"maybe_input_dataset" : null ,
890
890
}
891
891
t . deepEqual ( objectiveAssessment3 , decode ( ( readObjectiveAssessmentOutput3 . entry as any ) . Present . entry ) as any ) ;
892
+
893
+
894
+
892
895
// create context and threshold
896
+ const threshold = {
897
+ "dimension_eh" : createDimensionEntryHash ,
898
+ "kind" : { "GreaterThan" : null } ,
899
+ "value" : { "Integer" : 5 } ,
900
+ }
901
+ const culturalContext = {
902
+ "name" : "more than 5 total likeness" ,
903
+ "resource_type_eh" : createResourceTypeEntryHash ,
904
+ "thresholds" : [ threshold ] ,
905
+ "order_by" : [ [ createDimensionEntryHash , { "Biggest" : null } ] ] , // DimensionEh
906
+ }
907
+
908
+ const createContextEntryHash : EntryHash = await callZomeAlice (
909
+ "sensemaker" ,
910
+ "create_cultural_context" ,
911
+ culturalContext ,
912
+ true
913
+ )
914
+ t . ok ( createContextEntryHash ) ;
893
915
894
916
// create 3 objective assessments, 2 meet threshold and test ordering, 1 doesn't meet to test threshold
895
917
// 2 likes, 1 like, 0 likes
You can’t perform that action at this time.
0 commit comments