UNPKG

openhalla

Version:
26 lines (23 loc) 674 B
/* * index.js should import from data/tiers and data/legends and place * the result in tiers and legends properties in its exports */ var proxyquire = require('proxyquire'); var assert = require('assert'); // Mock values var tiersStub = 304; var legendsStub = 503; // injection var index = proxyquire('./index', { './data/tiers': { value: tiersStub, '@noCallThru': true }, './data/legends': { value: legendsStub, '@noCallThru': true }, }); // assertion to confirm that the values are linked as expected assert.equal(index.legends.value, legendsStub); assert.equal(index.tiers.value, tiersStub);