Sha256: 7ae7b6f08b6348f4f463a861e696e906cf1e04e5d9513834b1a7d5b635d94a89
Contents?: true
Size: 944 Bytes
Versions: 1
Compression:
Stored size: 944 Bytes
Contents
require_relative '../test_helper' require 'hquery-patient-api' class JSObjectTest < Minitest::Test def setup end def test_library_functions_with_crosswalk result = HQMF2JS::Generator::JS.library_functions(true) assert !result.match(/CROSSWALK EXTENSION/).nil? assert !result.match(/CrosswalkManager/).nil? end def test_js_initialize_specifics js = HQMF2JS::Generator::JS.new nil criteria = HQMF::DataCriteria.from_json(nil, JSON.parse(File.read(File.join('test','fixtures','json','data_criteria','specific_occurrence.json')))) expected = "hqmfjs.initializeSpecifics = function(patient_api, hqmfjs) { hqmf.SpecificsManager.initialize(patient_api,hqmfjs,{\"id\":\"\",\"type\":\"ENCOUNTER_PERFORMED_INPATIENT_ENCOUNTER\",\"function\":\"OccurrenceAInpatientEncounter1\"}) }" result = js.js_initialize_specifics([criteria]) assert_equal expected, result end def test_to_js_without_codes end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hqmf2js-1.4.0 | test/unit/js_object_test.rb |