Skip to content
Snippets Groups Projects
Commit b6c89f13 authored by jackmnolley's avatar jackmnolley
Browse files

Updated with my changes

parent 369cb48a
No related branches found
No related tags found
No related merge requests found
// import { render, screen } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import '../../testing/mockRedux.js';
// import { NumberInputField, internals } from './numberInputField.js';
import { NumberInputField } from './numberInputField.js';
import numberInputFieldSlice from '../number-input-field/numberInputFieldSlice.js';
import {
selectNumberOfUnits,
setNumberOfUnits,
} from './numberInputFieldSlice.js';
/*
import {
selectCurrentInputUnit,
selectCurrentOutputUnit,
} from '../unit-selector/unitSelectorSlice.js';
*/
describe('the NumberInputField slice', () => {
test('selects input value according to the store', () => {
......@@ -52,7 +51,6 @@ jest.mock('../unit-selector/unitSelectorSlice.js', () => ({
selectCurrentOutputUnit: jest.fn().mockName('selectCurrentOutputUnit'),
}));
/*
describe('the NumberInputField component', () => {
test('numberInputField displays apropriate content', () => {
selectNumberOfUnits.mockReturnValue(10);
......@@ -65,4 +63,3 @@ describe('the NumberInputField component', () => {
);
});
});
*/
// import { render, screen } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import '../../testing/mockRedux.js';
// import { UnitSelector } from './unitSelector.js';
import { UnitSelector } from './unitSelector.js';
/*
import {
selectNumberOfUnits,
} from '../number-input-field/numberInputFieldSlice.js';
*/
import unitSelectorSlice, {
selectCurrentInputUnit,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment