feat: migrate enzyme to edx react-unit-test-utils
This commit is contained in:
committed by
GitHub
parent
1bc4e51c22
commit
dcdaace08d
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { shallow } from '@edx/react-unit-test-utils';
|
||||
import hooks from './hooks';
|
||||
import { formatMessage } from '../../../testUtils';
|
||||
|
||||
@@ -31,6 +31,6 @@ describe('SourceCodeModal', () => {
|
||||
value: mockvalue,
|
||||
ref: mockref,
|
||||
});
|
||||
expect(shallow(<SourceCodeModal {...props} />)).toMatchSnapshot();
|
||||
expect(shallow(<SourceCodeModal {...props} />).snapshot).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user