Step 3.1: Stop using getComponent
in tests
This commit is contained in:
parent
15b84bd9a6
commit
26dc2ba45e
23 changed files with 27 additions and 63 deletions
|
@ -18,7 +18,6 @@ import React from 'react';
|
|||
import { mount } from 'enzyme';
|
||||
import { act } from 'react-dom/test-utils';
|
||||
|
||||
import '../../../skinned-sdk';
|
||||
import LiveDurationDropdown, { DEFAULT_DURATION_MS }
|
||||
from '../../../../src/components/views/location/LiveDurationDropdown';
|
||||
import { findById, mockPlatformPeg } from '../../../test-utils';
|
||||
|
|
|
@ -14,11 +14,8 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import sdk from "../../../skinned-sdk";
|
||||
import { textForLocation } from "../../../../src/components/views/location/shareLocation";
|
||||
|
||||
sdk.getComponent("LocationPicker");
|
||||
|
||||
describe("LocationButton", () => {
|
||||
describe("textForLocation", () => {
|
||||
it("with no description, simply dumps URI and date", () => {
|
||||
|
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
|||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
|
||||
import '../../../skinned-sdk';
|
||||
import { MapError } from '../../../../src/components/views/location/MapError';
|
||||
import { LocationShareError } from '../../../../src/utils/location';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue