qpp-measures-data
Advanced tools
Comparing version 1.8.3 to 1.8.4
@@ -8,2 +8,3 @@ // Libraries | ||
const benchmarkJsonFileRegEx = /^[0-9]{4}\.json$/; | ||
const Constants = require('./constants.js'); | ||
@@ -32,3 +33,4 @@ /** | ||
exports.getBenchmarksSchema = function() { | ||
return YAML.load(path.join(__dirname, 'benchmarks', 'benchmarks-schema.yaml')); | ||
const performanceYear = (process.argv[3] || Constants.currentPerformanceYear).toString(); | ||
return YAML.load(path.join(__dirname, 'benchmarks', performanceYear, 'benchmarks-schema.yaml')); | ||
}; | ||
@@ -35,0 +37,0 @@ |
{ | ||
"name": "qpp-measures-data", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "Quality Payment Program Measures Data Repository", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -10,3 +10,3 @@ const fs = require('fs'); | ||
]; | ||
const BENCHMARK_JSON_DIR = '../../../staging/benchmarks/json/'; | ||
const BENCHMARK_JSON_DIR = '../../../staging/2018/benchmarks/json/'; | ||
@@ -13,0 +13,0 @@ // Returns an alphabetically-ordered list of files in the given pat |
const helpers = require('./helpers/merge-benchmark-data-helpers.js'); | ||
const BENCHMARK_JSON_DIR = '../../staging/benchmarks/json/'; | ||
const BENCHMARK_JSON_DIR = '../../staging/2018/benchmarks/json/'; | ||
const BENCHMARK_LAYER_FILES = helpers.getOrderedFileNames(__dirname, BENCHMARK_JSON_DIR); | ||
@@ -5,0 +5,0 @@ |
@@ -42,4 +42,4 @@ const chai = require('chai'); | ||
it('joins correctly two layers', function() { | ||
const baseLayer = '../../../test/benchmarks/files/base_layer.json'; | ||
const secondLayer = '../../../test/benchmarks/files/overwrite_001_claims.json'; | ||
const baseLayer = '../../../../test/benchmarks/files/base_layer.json'; | ||
const secondLayer = '../../../../test/benchmarks/files/overwrite_001_claims.json'; | ||
@@ -86,5 +86,5 @@ const layers = [baseLayer, secondLayer]; | ||
it('joins a third independent layer', function() { | ||
const baseLayer = '../../../test/benchmarks/files/base_layer.json'; | ||
const secondLayer = '../../../test/benchmarks/files/overwrite_001_claims.json'; | ||
const thirdLayer = '../../../test/benchmarks/files/independent_layer.json'; | ||
const baseLayer = '../../../../test/benchmarks/files/base_layer.json'; | ||
const secondLayer = '../../../../test/benchmarks/files/overwrite_001_claims.json'; | ||
const thirdLayer = '../../../../test/benchmarks/files/independent_layer.json'; | ||
@@ -148,4 +148,4 @@ const layers = [baseLayer, secondLayer, thirdLayer]; | ||
it('throws an error when a measure is missing a field ', function() { | ||
const baseLayer = '../../../test/benchmarks/files/base_layer.json'; | ||
const secondLayer = '../../../test/benchmarks/files/missing_id_layer.json'; | ||
const baseLayer = '../../../../test/benchmarks/files/base_layer.json'; | ||
const secondLayer = '../../../../test/benchmarks/files/missing_id_layer.json'; | ||
@@ -152,0 +152,0 @@ const layers = [baseLayer, secondLayer]; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19503469
160
301773