ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/spec/helpers/getJSONFixtures.js

Summary

Maintainability
A
0 mins
Test Coverage
const path = require('path');

const fixturesPath = '../fixtures/json';

const getJSONFixture = fixturePath =>
  require(path.join(__dirname, fixturesPath, fixturePath)); // eslint-disable-line global-require

window.getJSONFixture = getJSONFixture;