Skip to content

Commit

Permalink
Merge pull request #1046 from knod/refactor-3
Browse files Browse the repository at this point in the history
Better folder name for benefit logic
  • Loading branch information
knod committed Dec 9, 2018
2 parents 88ad5e2 + 3e872b4 commit 46f6195
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 9 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/forms/CurrentBenefits.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { FormPartsContainer } from './FormPartsContainer';
import { ControlledRadioYesNo } from './inputs';

// DATA
import { allBenefitOrders } from '../programs/allBenefitOrders';
import { allBenefitOrders } from '../benefits/allBenefitOrders';


/** Asks which benefits the user is currently receiving
Expand Down
2 changes: 1 addition & 1 deletion src/forms/output/BenefitsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { Table } from 'semantic-ui-react';

// BENEFIT LOGIC
import { applyAndPushBenefits } from '../../programs/applyAndPushBenefits';
import { applyAndPushBenefits } from '../../benefits/applyAndPushBenefits';

// OBJECT MANIPULATION
import { cloneDeep } from 'lodash';
Expand Down
2 changes: 1 addition & 1 deletion src/forms/output/Summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { cloneDeep } from 'lodash';
import { toMoneyStr } from '../../utils/prettifiers';

// BENEFIT LOGIC
import { applyAndPushBenefits } from '../../programs/applyAndPushBenefits';
import { applyAndPushBenefits } from '../../benefits/applyAndPushBenefits';


const EARNED_MONTHLY_INCREMENT_AMOUNT = 50; // About a 25 cent raise in monthly amount for 40hrs/week?
Expand Down
2 changes: 1 addition & 1 deletion src/forms/output/getChartData.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from 'lodash';
import { BENEFIT_CHART_VALUES } from './BENEFIT_CHART_VALUES';

// LOGIC
import { applyAndPushBenefits } from '../../programs/applyAndPushBenefits';
import { applyAndPushBenefits } from '../../benefits/applyAndPushBenefits';


/** Returns the graph data formated in a way our graph
Expand Down
2 changes: 1 addition & 1 deletion src/test/programs/federal/snap/generateTestCases.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
UNDER13_CARE_EXPENSES,
OVER12_CARE_EXPENSES,
} from '../../../../data/massachusetts/name-cores';
import { getSNAPBenefits } from '../../../../programs/federal/snap';
import { getSNAPBenefits } from '../../../../benefits/federal/snap';

export const FILE_NAME = 'test-cases.txt';
const NUMBER_TEST_CASES = 1000;
Expand Down
2 changes: 1 addition & 1 deletion src/test/programs/federal/snap/regression.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import readline from 'readline';
import { cloneDeep, extend } from 'lodash';

import { CLIENT_DEFAULTS } from '../../../../utils/CLIENT_DEFAULTS';
import { getSNAPBenefits } from '../../../../programs/federal/snap';
import { getSNAPBenefits } from '../../../../benefits/federal/snap';

test('getSNAPBenefits() matches saved results', (done) => {
const rl = readline.createInterface({ input: fs.createReadStream(path.resolve(__dirname, 'test-cases.txt')) });
Expand Down
2 changes: 1 addition & 1 deletion src/test/programs/federal/snap/samples.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getSNAPBenefits } from '../../../../programs/federal/snap';
import { getSNAPBenefits } from '../../../../benefits/federal/snap';

// CLIENTS
import { CLIENT_DEFAULTS } from '../../../../utils/CLIENT_DEFAULTS';
Expand Down
2 changes: 1 addition & 1 deletion src/test/programs/federal/snap/unit.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SNAPhelpers } from '../../../../programs/federal/snap';
import { SNAPhelpers } from '../../../../benefits/federal/snap';

// CLIENTS
import { CLIENT_DEFAULTS } from '../../../../utils/CLIENT_DEFAULTS';
Expand Down
2 changes: 1 addition & 1 deletion src/test/programs/massachusetts/housing.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getSection8Benefit, section8Helpers } from '../../../programs/massachusetts/section8';
import { getSection8Benefit, section8Helpers } from '../../../benefits/massachusetts/section8';

// CLIENTS
import { CLIENT_DEFAULTS } from '../../../utils/CLIENT_DEFAULTS';
Expand Down

0 comments on commit 46f6195

Please sign in to comment.